how to reset input file field in javascript code example Example: javascript clear file input document.getElementById("myFileInputID").value = null;