How do you disable a button after it is clicked in JavaScript? code example
Example: javascript disable button
//disable the button
document.getElementById(BUTTON_ID).disabled = true;
//reable the button
document.getElementById(BUTTON_ID).removeAttribute('disabled');