how to enable disable button in js code example Example: javascript disable button document.getElementById(BUTTON_ID).disabled = true;