I am working on a web page which has a file uploader. After I click the button 'Discard changes', I want the contents of the file uploader to be purged. I was thinking to do this by refreshing the fileuploader using jQuery.
How can this be done in jQuery please? Thanks :)
Edit
The file uploader I am using makes use of a jQuery library so that it can upload several photos at once. As a result, changing its value to "" does not work in this case.
That's why I'd like to reload it all together using jQuery.
This is the plugin I am using: