title: JQuery onclick function to focus input
body: <p>I want a JQuery function that means if the user clicks on some text on the page it focuses an input.</p>
  
  <pre><code>$(document).ready(function(){
  $('#header.search span').click(function(){
      $('#header.search input').focus();
  });
  });
  </code></pre>
  
  <p>That did not do anything. On Firebug nothing is registered.</p>
  
  <p>Any ideas?</p>
  
  <p>Marvellous</p>