title: Why we need to create a new function instead of using an existing function when calling on('change', new func(){myfunc()})?
body: <p>I have a newbie question.</p>
  
  <p>In jQuery, why, when we call the :</p>
  
  <pre><code>$('#input').on('change', myfunction());
  </code></pre>
  
  <p>The myfunction() function is not called each time that the "input" field is changed, but only at the first script loading?</p>
  
  <p>And this code works: </p>
  
  <pre><code>$('#input').on('change', function() { myfunction(); });
  </code></pre>
  
  <p>I was expecting the same result...</p>
  
  <p>Thanks for any help.</p>