title: how to select all text in textarea on focus (in safari)
body: <p>I can't work out why I can't get the the content of a textarea to be selected when the textarea receives focus.</p>
  
  <p>Please visit a live example here: <a href="http://jsfiddle.net/mikkelbreum/aSvst/1">http://jsfiddle.net/mikkelbreum/aSvst/1</a></p>
  
  <p>Using jQuery, this is my code. (IN SAFARI) It makes the text selected in case of the click event, but not the focus event:</p>
  
  <pre><code>$('textarea.automarkup')
  .mouseup(function(e){
      // fixes safari/chrome problem
      e.preventDefault();
  })
  .focus(function(e){
      $(this).select();
  })
  .click(function(e){
      $(this).select();
  });
  </code></pre>