Skip to content

Instantly share code, notes, and snippets.

@kurotaky
Last active December 22, 2015 10:29
Show Gist options
  • Select an option

  • Save kurotaky/6459506 to your computer and use it in GitHub Desktop.

Select an option

Save kurotaky/6459506 to your computer and use it in GitHub Desktop.
submitボタンを押した時に二重POSTされるのを防止する
/* 二重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