Multiple submit button in one screen
There are cases when you have multiple HTML button in one screen like “Accept” or “Decline”, “Yes or “No” etc. In this case, clicking one button should disable both buttons because there are intended for one operation. In order to disable multiple submit button in onclick, you need to explicitly disable those buttons. As in below example, if you have two buttons with name accept and decline, we are disabling both when any of the buttons get clicked.
<input type=”submit” id=”reject” name=”REJECT” value=”Reject”