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