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