javascript prevent multiple submit code example
Example: prevent multiple form submissions javascript
var form = document.getElementById('formID');
var submitButton = document.getElementById('submitID');
form.addEventListener('submit', function() {
// Disable the submit button
submitButton.setAttribute('disabled', 'disabled');
// Change the "Submit" text
submitButton.value = 'Please wait...';
}, false);