Disable Submit button after being pressed Print

  • 2

If you want to diable the Submit Button on a form after the button has been pressed then use the following code for the submit button.

Once pressed it replaces the text with " Please wait... " and stops the button being pressed again.

**CODE**

< input name="BtnSubmit" value="Login" onclick="this.value = ' Please wait... ';this.disabled = true;theForm.submit();" id="BtnSubmit" style="width: 120px;" type="submit" >

**End Of Code**


Was this answer helpful?

« Back