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:

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to and use offer code ‘EXPERTS’ to get 10% off your first purchase.

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.