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