Created
February 1, 2019 15:40
-
-
Save marvinhosea/42a46f4ce50310729bff56451823c970 to your computer and use it in GitHub Desktop.
Prevent Submitting Form Twice Js
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
<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