disable input field by using document in javascript w3schools code example
Example: disable input box javascript
document.getElementById("myText").disabled = true;// <input id = "myText"/>
document.getElementById("myText").disabled = true;// <input id = "myText"/>