Answers for "disable button after one click"

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 "disable button after one click"

Browse Popular Code Answers by Language