Hello,
I have a form which allow to submit a file, I'd like to block the submit
buton once it has been clicked, so I tried:
function SubmitNow(item) {
if(item.value== "Please wait") {
return false ;
} else {
item.value="Ple ase wait" ;
item.form.submi t ;
}
}
With inside the submit buton:
<input class=submit type=submit value=Valid name=submitbtn
onClick="Submit Now(this);">
But it does not work :( We can send several times the same file...
Any idea ?
Thanks,
Vincent.
I have a form which allow to submit a file, I'd like to block the submit
buton once it has been clicked, so I tried:
function SubmitNow(item) {
if(item.value== "Please wait") {
return false ;
} else {
item.value="Ple ase wait" ;
item.form.submi t ;
}
}
With inside the submit buton:
<input class=submit type=submit value=Valid name=submitbtn
onClick="Submit Now(this);">
But it does not work :( We can send several times the same file...
Any idea ?
Thanks,
Vincent.
Comment