Hi,
Is there a way to clear the value of for <INPUT TYPE="FILE" id="File2"> using javascript?
When user click on button, I need to clear the value of File2
<input type="button" name="c" value="Test" onclick="clearFile()">
function clearFile() {
document.a.File2.value = "";
}
is not working?
Thanks in advance!



Reply With Quote


Bookmarks