Wednesday, April 1, 2009

readonly not works in JavaScript DOM

DOM- Javascript if you are using...
document.getElementById("idTest").readonly=true;
it will not work.
we have to use readOnly instead of readonly
correct is...
document.getElementById("idTest").readOnly=true;

No comments: