disable inputs when div appears javascript code example
Example: disable input box javascript
document.getElementById("myText").disabled = true;// <input id = "myText"/>
document.getElementById("myText").disabled = true;// <input id = "myText"/>