js diasble input code example Example: disable input box javascript document.getElementById("myText").disabled = true;// <input id = "myText"/>