title: set focus() on textbox on form onload
body: <p>I am trying to set focus on a textbox in a form that's a part of jQuery tree. Here is my code</p>
  
  <pre><code>$(document).ready(function() {
  
         $("#search").focus();
  
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code> &lt;div&gt;
       &lt;form action="search" method="post" name="frmSearch&gt;
            &lt;label for="search"&gt;Search:&lt;/label&gt;
          &lt;input type="text" name="search" id="search" /&gt;
          &lt;input type="submit" name="button" value="Search" /&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When I click on Search tab in the tree, it won't set focus on the textbox. Can someone let me know what's wrong in the code?</p>