how to fire event on file select

Use the change event on the file input.

$("#file").change(function(){
         //submit the form here
 });

Leave a Comment