Answers for "empty input file"

6

jquery clear file input

//clear a file input with jQuery 
$("#myFileInputID").val(null);

//clear file input in plain Javascript
document.getElementById("myFileInputID").value = null;
Posted by: Guest on August-01-2019
2

javascript set file input value to null

document.getElementById("myInputFileID").value=null;
Posted by: Guest on February-20-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language