Last active
December 22, 2015 10:29
-
-
Save kurotaky/6459506 to your computer and use it in GitHub Desktop.
submitボタンを押した時に二重POSTされるのを防止する
This file contains hidden or 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
| /* 二重postを防止する */ | |
| $(function() { | |
| var isSubmitClicked = false; | |
| $('#submitButton').click(function() { | |
| if(isSubmitClicked) { | |
| return false; | |
| } | |
| isSubmitClicked = true; | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment