Created
September 9, 2019 11:12
-
-
Save gregblass/ef28dc486f300673f156d6de86d0f610 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Prevent submitting the form more than once at a time | |
$(document).on('submit', '#your-form-id', function() { | |
// Prevent the form from submitting subsequent times | |
$(this).submit(function() { | |
return false; | |
}); | |
// Allow the form to be submitted the first time | |
return true; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment