title: how to clear textbox when it first comes into focus?
body: <p>I'm trying to clear a textbox when it first comes into focus and that's all.  I can clear the textbox whenever it comes into focus but this is turning into a problem.  I just want it to clear when it first comes into focus.  </p>
  
  <p>So when the page loads, the textbox says "search here" -- once the user clicks inside, "search here" disappears and the textbox goes blank.  The user can keep typing their search query.  </p>
  
  <p>But my code, as seen below, just keeps clearing the textbox.  Any ideas?</p>
  
  <pre><code>    $('input[type=text]').focus(function() {
        $(this).val('')
  });
  </code></pre>