Here we talk about button disable after a click. When i clicked the button after clicking the button disable automatic.


Code

function disableButton(btn){ document.getElementById(btn.id).disabled = true; alert("Button has been disabled."); }