Readonly attribute

See attached.

Readonly attribute in checkboxes DOES NOT work.

Why?

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

disabled="disabled"
0
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..
0
 
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.
0
 
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.
0
 
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.

Thanks!
0
 
BadotzCommented:
No worries, glad to help.

Oh, and it is what it is.
0
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.