drbutterboy
Programmer
On a webpage, I have a checkbox called "chkN___EFUN" that's sometimes readonly and I wanted to interrogate its value when the page is submitted.
When the check box is read only I found that referencing this object like so "document.all.chkN___EFUN(0).value" would give me a true/false.
But, when this value was not read only I would need to reference it like this "document.all.chkN___EFUN.value" or I would get the javascript error "Object does not support this method or property".
Does anyone know the best way to handle this situation I can get the value of the check box when its readonly and not readonly?
Thanks!

When the check box is read only I found that referencing this object like so "document.all.chkN___EFUN(0).value" would give me a true/false.
But, when this value was not read only I would need to reference it like this "document.all.chkN___EFUN.value" or I would get the javascript error "Object does not support this method or property".
Does anyone know the best way to handle this situation I can get the value of the check box when its readonly and not readonly?
Thanks!