for example lets take :
Code:
<form method=post name=upform action="/cgi-bin/some-script.cgi" enctype="multipart/form-data">
<input type=file name=uploadfile1 onchange="LimitAttach(this.form, this.form.uploadfile1.value)">
<input type=file name=uploadfile2 onchange="LimitAttach(this.form, this.form.uploadfile2.value)">
<input type=file name=uploadfile3 onchange="LimitAttach(this.form, this.form.uploadfile3.value)">
<input type=button name="Submit" value="Submit">
</form>
calls function
Code:
function LimitAttach(form, file) {
???????
}
what i have to write there in order to reset the field of the choosen file?
document.formData.value='';
generalproperty.file1.value=''; this.value='';
document.getElementById(FILE).value='';
Bookmarks