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:
Expand|Select|Wrap|Line Numbers
- <form enctype="multipart/form-data" action="?id=completeupload" name="submitform" 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="uploadbutton" onclick="submitform.disabled=true; submitform.form.submit();">
- </font></span>
- </form>
If anybody can help it would be greatly appreciated, thanks.