title: jquery input select all on focus
body: <p>I'm using this code to try and select all of the text in the field when a user focuses on the field. What happens is, it selects all for a second, then its unselected and the typing cursor is left where I clicked...</p>
  
  <pre><code>$("input[type=text]").focus(function() {
     $(this).select();
  });
  </code></pre>
  
  <p>I want it all to remain selected.</p>