1//clear a file input with jQuery
2$("#myFileInputID").val(null);
3
4//clear file input in plain Javascript
5document.getElementById("myFileInputID").value = null;
6
7
8
1 var input = $("#fileInput");
2
3 function clearInput() {
4 input = input.val('').clone(true);
5 };
6