Iris Lee
0
Q:

readonly attribute in html by javascript

document.getElementById("yourID").readOnly = true; 
2
document.getElementById("myText").readOnly = true; 
1

New to Communities?

Join the community