disable button on form submit code example
Example 1: prevent button from submitting form
function myFunc(e){
e.preventDefault();
}
Example 2: prevent button form submit
<button type="button">Button</button>
Example 3: button onclick disable after submit
onClick="this.form.submit(); this.disabled=true; this.value='Sending…'; "