Disabling more than one form button at the time of submission

Yepkoo

Yepkoo
Staff member
You can disable one or more form buttons when you press the submit button as follows.
Define the id name of each button you add to the onclick section of all buttons.

Example:
JavaScript:
disableButton('formbtn1');

Example to disable the multiform button;
HTML:
<button id="formbtn1" type="submit" class="ui blue button small" onclick="disableButton('formbtn1');disableButton('formbtn2')">Submit</button></div>
               
<button id="formbtn2" type="submit" class="ui blue button small" onclick="disableButton('formbtn1');disableButton('formbtn2')">Submit</button></div>
 
Top