title: Wire Up events with JQuery
body: <p>I am working on to implement HTML 5 file uploading. My application uses JQuery. I've been using this page <a href="http://www.html5rocks.com/en/tutorials/file/dndfiles/" rel="nofollow">Reading local files in JavaScript</a> for reference, but I've hit a roadblock. I need to kick off an event when the "change" event is fired. However, I can't figure out how to wire it up with JQuery. The following code doesn't show an error in the console, however, it also doesn't display an alert message. Because of this, I know my wireup isn't happening. What am I doing wrong?</p>
  
  <pre><code>&lt;input id="uploadInput" type="file" multiple="multiple" /&gt;
  
  $().ready(function () {
    $("#uploadInput").bind("change", beginUpload);
  });
  
  function beginUpload(e) {
    alert("Here");
    var fileCount = e.target.files;
    alert("Uploading " + fileCount + " files...");
  }
  </code></pre>
  
  <p>Thank you!</p>