Thank's Lee
Yes, it should be exactly as what you show on your sample. I ve got to
check my program. My example is just a short cut from my real one. Thank you
very much!
Jack
"Lee" <RE**************@cox.net> wrote in message
news:ca*********@drn.newsguy.com...
datactrl said:
For example ...
<TD>
<INPUT TYPE="text" id="itemdesc" READONLY class=scFieldRecList
name="page1"></TD>
<TD>
....
itemdesc.readOnly=false;
alert(itemdesc.readOnly);
....
I mean the alert always show "true" rather than "false".
This alerts false in Netscape 7.1 and IE 6:
<html>
<body>
<form>
<INPUT TYPE="text"
id="itemdesc"
READONLY
class=scFieldRecList
value="initial value"
name="page1">
</form>
<script>
document.getElementById("itemdesc").readOnly=false ;
document.getElementById("itemdesc").value="new value";
alert(document.getElementById("itemdesc").readOnly );
</script>
</body>
</html>