I have buttons that display a form when clicked. I'm currently trying to figure out how to disable the other buttons once one button is already clicked, to prevent multiple forms from showing. I'm not good at javascript so I appreciate any help I may receive.
For example here are are 2 of my buttons that will display a form.
<button type="button" class="fbutton" id="formButton">1</button>
<button type="button" class="fbutton" id="formButton2">2</button>
Here is the javascript function to to display the forms, when the button is clicked.
$("#formButton").click(function () {
$("#form1").toggle();
});
$("#formButton2").click(function () {
$("#form2").toggle();
});