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