Skip to content

Instantly share code, notes, and snippets.

@marvinhosea
Created February 1, 2019 15:40
Show Gist options
  • Save marvinhosea/42a46f4ce50310729bff56451823c970 to your computer and use it in GitHub Desktop.
Save marvinhosea/42a46f4ce50310729bff56451823c970 to your computer and use it in GitHub Desktop.
Prevent Submitting Form Twice Js
<script>
function sendingForm(button) {
button.disabled = true;
button.innerHTML = "<i class='fa fa-spinner fa-spin '></i> Please wait..";
button.form.submit();
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment