js enable and disable 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"/>