• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 300
  • Last Modified:

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
0
Richard Korts
Asked:
Richard Korts
  • 4
  • 2
  • 2
2 Solutions
 
Paul JacksonCommented:
Use enabled=false instead
0
 
Paul JacksonCommented:
or even disabled=true
0
 
BadotzCommented:
Actually, it is:

disabled="disabled"
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Paul JacksonCommented:
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 JacksonCommented:
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now