title: jquery how to set input focus on control
body: <p>Hey I am very new to jquery using asp.net, and I was wondering how to set focus on a textbox using jquery.</p>
  
  <p>I have my script in my HeaderContent but it is not working, no focus on load. And yes I know this can be done on the server side as well, but I am just trying to get better and more familiar with jquery. Thanks.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
     $(document).ready(function () {
        $("#MainContent_LoginUser_UserName").focus();
     });
  &lt;/script&gt;
  </code></pre>