title: Pass data using jQuery Trigger event to a Change event handler?
body: <p>Is there a way to pass data to a <code>change</code> event via jQuery's <code>trigger</code> method?</p>
  
  <p>The issue here is that a <code>click</code> event triggers the upload menu. Once the image is selected, the <code>change</code> event is fired, however. The data I passed into the trigger event's second parameter is passed to the click event, not to the change event. In the example below, <code>data</code> is undefined.</p>
  
  <p><strong>Trigger Image Change</strong></p>
  
  <pre><code>$('.change_main_image').live('click', function() {
      $('input[name=photo].change_uploader').trigger('click', ["some string"]);
  });
  </code></pre>
  
  <p><strong>Event Handler</strong></p>
  
  <pre><code>$('input[name=photo].change_uploader').live('change', function (e, data) {
     alert(data); // undefined
     //canvas resize and upload script
  });
  </code></pre>