title: chrome extension popup textarea focus
body: <p>It seems that i cannot call focus() on a textarea of my chrome extensions popup when it gets opened / after ondomready.</p>
  
  <p>i have something like that in popup.js :</p>
  
  <pre><code>$(document).ready(function () {
     console.log($("#moped-text"));
     $('textarea').focus();   
     $('.container').css("color", "red");
  });
  </code></pre>
  
  <p>i reference it in popup.html like that:</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
  
      &lt;link rel="stylesheet" href="css/content.css" type="text/css"&gt;
  
      &lt;script type="text/javascript" src="js/lib/jquery.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/popup.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
   &lt;body&gt;
         &lt;div class="container"&gt;
              &lt;textarea name="newText"&gt;&lt;/textarea&gt;
         &lt;/div&gt;     
   &lt;/body&gt;
  </code></pre>
  
  <p>The css-change works, the focus() does not!</p>
  
  <p>When i debug the popup and type $('textarea').focus(); in the console, it works.
  Also events added inside the ready-callback are bound successfully.</p>
  
  <p>Any help highly appreciated!</p>