title: How do I use a function with parameters as a handler when using on() in jQuery?
body: <pre><code>$('#editor'+id).on(&quot;click dbclick mousedown mousemove mouseover mouseout mouseup keydown keypress keyup blur change focus select&quot;, {param1:id}, editor_change);
  
  function editor_change(id){
  ...does stuff...;
  }
  </code></pre>
  <p>This function is supposed to take each textarea element with the id &quot;editor&quot; + a unique id (e.g. &quot;editor24&quot;) and add a handler that detects an edit in the textarea. The function it is calling <code>editor_change</code> takes one parameter &quot;id&quot; that I need to include in the handler. How do I include this parameter when creating the handler?</p>