I have a submit button at the end of the form.
I have added the following condition to the submit button:
onClick=\"this.disabled=true; this.value=\'
You need to disable the button in the onsubmit event of the :
onsubmit
Post
Note: this way if you have a form element which has the required attribute will work.
required