Hello, first time posting on thescripts.com, and I'm in dire need of some help.
All I want to do is disable the submit button (not the entire form) onClick, and am wondering if this is possible.
Here's the current coding:
[CODE=HTML]<form enctype="multip art/form-data" action="?id=com pleteupload" name="submitfor m" method="POST">
<b>File to Upload:</b> <input name="userfile" size="50" type="file"><br ><br>
<span class="class3">
<input type="checkbox" name="agree" value="22">I agree to the upload terms and conditions for mysite.com (<a href='agreement .php' target='_blank' > View Terms </a>)<br><br>
<input type="submit" value="Upload File" name="uploadbut ton" onclick="submit form.disabled=t rue; submitform.form .submit();">
</font></span>
</form>[/CODE]
It's a file upload script, everything works other then when i try to disable the button onclick. With this current coding in IE it disables the entire form and doesn't process the request. FireFox it processes the request, but doesn't disable the button or form.
If anybody can help it would be greatly appreciated, thanks.
All I want to do is disable the submit button (not the entire form) onClick, and am wondering if this is possible.
Here's the current coding:
[CODE=HTML]<form enctype="multip art/form-data" action="?id=com pleteupload" name="submitfor m" method="POST">
<b>File to Upload:</b> <input name="userfile" size="50" type="file"><br ><br>
<span class="class3">
<input type="checkbox" name="agree" value="22">I agree to the upload terms and conditions for mysite.com (<a href='agreement .php' target='_blank' > View Terms </a>)<br><br>
<input type="submit" value="Upload File" name="uploadbut ton" onclick="submit form.disabled=t rue; submitform.form .submit();">
</font></span>
</form>[/CODE]
It's a file upload script, everything works other then when i try to disable the button onclick. With this current coding in IE it disables the entire form and doesn't process the request. FireFox it processes the request, but doesn't disable the button or form.
If anybody can help it would be greatly appreciated, thanks.
Comment