Skip to content

Instantly share code, notes, and snippets.

@toddlahman
toddlahman / gist:6302114
Last active January 18, 2020 09:40
Prevent Duplicate Form Submissions with jQuery
jQuery(function() {
$("form").submit(function() {
// submit more than once return false
$(this).submit(function() {
return false;
});
// submit once return true
return true;
});
});