I am having problem that when i am trying to submit the form by clicking on the submit button it takes some time to post request during this if i am again click on the Submi
One solution is to not use an And the as the submit button, but instead a ) styled as a button, having an onclick attribute:
submitOnce function would first remove the onclick attribute and then submit the form:function submitOnce() {
document.getElementById('submit-button').removeAttribute('onclick');
document.getElementById('my-form').submit();
}