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