How to Disable Enable Submit Button using Javascript Jquery

How to disable enable submit button through Javascript Jquery. How to prevent multiple clicks on same submit button. This is the common issue where user click on submit button multiple times. To prevent this issue you can disable submit button once user clicked.

How to Prevent Multiple clicks (or Form submission) using Javascript Jquery

Let’s take a simple javascript snippet which prevent multiple clicks on submit button.

On the onclick event  put this.disabled=’disabled’ . This code will disable submit button once it’s clicked by user.

Jquery code to disable submit button.

How to disable enable submit button on checkbox check uncheck

when user check uncheck the checkbox.  We need to enable or disable the submit button.

Jquery snippet

Create check box

Submit button

Tagged . Bookmark the permalink.

About WebRewrite

I am technology lover who loves to keep updated with latest technology. My interest field is Web Development.