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