javascript enable button on button click code example Example: javascript disable button document.getElementById(BUTTON_ID).disabled = true;