Readonly attribute

See attached.

Readonly attribute in checkboxes DOES NOT work.


I tried it in FireFox & IE. Works in neither
Richard KortsAsked:
Who is Participating?
Paul JacksonConnect With a Mentor Software EngineerCommented:
Use enabled=false instead
Paul JacksonSoftware EngineerCommented:
or even disabled=true
BadotzConnect With a Mentor Commented:
Actually, it is:

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Paul JacksonSoftware EngineerCommented:
ah yeah hmm too late i need sleep..
Richard KortsAuthor Commented:
Actually, I figured it out myself, but you guys were QUICK so I'm giving you the points.

As a curiosity, readonly works on most other types (certainly on text). Why not on checkbox?

Seems odd to have to remember "disabled" vs. "readonly", etc.
Paul JacksonSoftware EngineerCommented:
It is something to do with the fact that a checkbox is not considered to have a value it only has a state either on/off. Doesn't make sense to me either.
Richard KortsAuthor Commented:
To jacko72:

But in this case the EXACT thing I'm trying to accomplish is that if (in another process), someone has already USED one of the checked items, it CANNOT be unchecked, since it's already in use.

Oh well.

No worries, glad to help.

Oh, and it is what it is.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.