enable button after form submit code example Example: button onclick disable after submit onClick="this.form.submit(); this.disabled=true; this.value='Sending…'; "