how to add disabled to element javascript code example Example: js set disabled document.getElementById("myBtn").disabled = true;