Created
May 23, 2019 20:51
-
-
Save JulaineScott/4108910eb1c4ae12fdc6dde55d0e7fb1 to your computer and use it in GitHub Desktop.
Prevent double submits
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
//disable the button the moment it is clicked | |
//make sure to check also on server side | |
<input type="submit" value="Submit" onclick="this.disabled=true" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment