READONLY attribute

If I have a readonly object, is there a way to find out later if it is readonly? There isn't a isReadOnly() function like there is a isDisabled() function.
[163 byte] By [MrRogersa] at [2007-11-26 16:06:38]
# 1
I'm presuming you are talking javascript?Check the property readOnly directly - it doesn't have a method on it.If you aren't talking javascript what sort of object are you talking about?
evnafetsa at 2007-7-8 22:28:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
an html object, such as a text input...I've tried checking the value of (theObject).READONLY, but it's always undefined.I got by by setting the alt value to "readonly" and checking that. However, I feel this is bad coding because its not what the alt is meant for.
vinays84a at 2007-7-8 22:28:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
javascript is case sensitiverather than (theObject).READONLY, try (theObject).readOnly
evnafetsa at 2007-7-8 22:28:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
That worked. hmm..i could have sworn i had tried testing readonly in that form before..I guess not. Thanks!
vinays84a at 2007-7-8 22:28:49 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...