title: Empty input box onclick in jQuery
body: <p>I've no idea why this isn't working, but I'm sure it's a very common bit of Javascript. My syntax is clearly lacking, and I don't know why:</p>
  
  <pre><code>&lt;input type="text" value="search" id="search" name="q" onclick="javascript:if($(this).val() == 'search') {$(this).val() = '';} return false;" /&gt;
  </code></pre>