Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove image from input type file

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

//clear file input in plain Javascript
document.getElementById("myFileInputID").value = null;
 
PREVIOUS NEXT
Tagged: #remove #image #input #type #file
ADD COMMENT
Topic
Name
1+9 =