Answers for "how to disable button after click event"

0

On click, disable button

$("#btnSubmit").attr("disabled", true);
Posted by: Guest on May-17-2021
0

disable button after one click

You can add an onclick handler to your button:

document.getElementById("idOfButton").onclick = function() {
    //disable
    this.disabled = true;

    //do some validation stuff
}
Posted by: Guest on June-28-2021

Code answers related to "how to disable button after click event"

Code answers related to "Javascript"

Browse Popular Code Answers by Language