disableAfterSubmit: Disable All Buttons on a Page to Avoid Double Submits
When submitting a comment to a blog or uploading files, clicking twice can have undesirable effects.
Events are added to all forms, links and buttons inside the "disableAfterSubmit" class-name, that disable the clicks after the first one.
Since the change cannot be reversed easily, this method is not to be used on AJAX functionality.
Required Files
-
jQuery Addon Script: jquery.classbehaviours.disableaftersubmit.js
- Prerequisite Script: jquery.classbehaviours.js
- Example Markup: disableaftersubmit.html
Comments on this Article