title: Trying to wire up a jQuery .click() event .. but it's getting fired (instead of just wiring up)
body: <p>So i have the following jQuery:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
      // Init.
      $(function () {
  
          // Wire up the search box.
          $('#searchButton').click(
              search($('#query').val(),
                  $('aaa').val(),
                  $('bbb').val()
              ));
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>But when i first hit the page, the <code>search</code> function is getting fired (because I put a breakpoint in there).</p>
  
  <p>I thought my code (above) is just saying: <em>Wire up the click event AND when someone clicks that button, the following code is called => search function with the following 3 arguments)</em>.</p>
  
  <p>Can anyone tell me what I've done wrong, please?</p>