Use the change event on the file input.
$("#file").change(function(){
//submit the form here
});
More Related Contents:
- How to check first 200 chekboxes , then next 200 and so on?
- How can I access the contents of an iframe with JavaScript/jQuery?
- Pure JavaScript equivalent of jQuery’s $.ready() – how to call a function when the page/DOM is ready for it [duplicate]
- Prevent scrolling of parent element when inner element scroll position reaches top/bottom?
- Refresh/reload the content in Div using jquery/ajax
- How to delete a localStorage item when the browser window/tab is closed?
- How to check if iframe is loaded or it has a content?
- Get list of data-* attributes using javascript / jQuery
- Jquery Mobile – $.mobile.changepage not loading external .JS files
- Benefits vs. Pitfalls of hosting jQuery locally [closed]
- How to handle floats and decimal separators with html5 input type number
- How to check/uncheck radio button on click?
- jQuery select element by XPath
- How can I make window.showmodaldialog work in chrome 37?
- How do i disable a submit button when checkbox is uncheck?
- Split string into array without deleting delimiter?
- Preview images before upload
- Split a string based on multiple delimiters
- Jquery in React is not defined
- Reload parent window from child window
- .append VS .html VS .innerHTML performance
- removeEventListener without knowing the function
- Can jQuery change css style definition? (not individual css of each element)
- Load .txt file using JQuery or Ajax
- How to make superfish dropdown menu responsive?
- Blur event stops click event from working?
- Randomize setInterval ( How to rewrite same random after random interval)
- Javascript Input Text Masking without Plugin
- Convert iso timestamp to date format with Javascript?
- Disabling links to stop double-clicks in JQuery