Client Validation Help
I have a form that Im validating with the Client Validation Wizard. It works perfectly when I use <input type="submit" /> as the submit. However, I would like to disable the submit button on press.
I tried some code I found
<input type="button" value="Submit" onclick="this.form.submit();this.disabled=true; this.value='Processing'" />
but it skips the validation.
I also tried <input type=submit name='sub' value='Submit'> and put document.form1.sub.disabled=true after the return document.MM_returnValue but that didnt work either. If I put document.form1.sub.disabled=true before the document.MM_returnValue the submit gets disabled, but if the validation fails, the button stays disabled.
Any help would be greatly appreciated. Thanks,