Tutorial Clear a File Input
You can just clone it and replace it with itself, with all events still attached. var input = $("#control"); function something_ha...
https://iskablogs.blogspot.com/2014/03/tutorial-clear-file-input.html
You can just clone it and replace it with itself, with all events still attached.
var input = $("#control");
function something_happens() {
input.replaceWith(input.val('').clone(true));
};
var input = $("#control");
function something_happens() {
input.replaceWith(input.val('').clone(true));
};