PreventDoubleSubmission Prevent double submission of forms in jQuery Use it like this: $('form').preventDoubleSubmission(); Or $('form:not(.js-allow-double-submission)').preventDoubleSubmission();