document get element by id clear file input code example Example: javascript clear file input document.getElementById("myFileInputID").value = null;