title: Pass arguments to a callback function in jquery click event
body: <p>Straight to the business:</p>
  
  <p>I have a jquery event listener that looks like this:</p>
  
  <pre><code>$(".number").click(printNumber);
  </code></pre>
  
  <p>and a callback function:</p>
  
  <pre><code>function printNumber(number){
     console.log(number);
  }
  </code></pre>
  
  <p>I was wondering if I could pass an argument to a callback so it will look something like this</p>
  
  <pre><code>$(".number").click(printNumber(number));
  </code></pre>
  
  <p>(I know that it immediately invokes that function, but still, is there a way to pass arguments to it)</p>
  
  <p>Thank you in advance!</p>