JavaScript change event on input[type=“file”]

presskot

New Member
I programmed a script: The user can click the Browse button and a dialog box will open. Once the user has selected what you want to create a list of selected files. Duplicates may also be allowed.My problem is that I work with \[code\]change\[/code\] event. That is when the user selects a file and the files end up in my list, and the user wants to select the same file again does not work.Example \[code\]jQuery(form).find("input[type='file']").on("change", checkSelectedFile);function checkSelectedFile (e) { console.log(e); }\[/code\]If first and last files are the same then the event is not fired. Do you have an idea?
 
Back
Top