I have a file input element
<input type="file" id="fileid">
How do I call a JavaScript function after selecting a file from the dialog window and closing it?
jQuery("input#fileid").change(function () { alert(jQuery(this).val()) });
2.1m questions
2.1m answers
60 comments
57.0k users