Solved

Readonly attribute

Posted on 2011-02-24
8
287 Views
Last Modified: 2012-05-11
See attached.

Readonly attribute in checkboxes DOES NOT work.

Why?

I tried it in FireFox & IE. Works in neither
event-sponsorship-opp.txt
0
Comment
Question by:Richard Korts
  • 4
  • 2
  • 2
8 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 250 total points
ID: 34975824
Use enabled=false instead
0
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 34975853
or even disabled=true
0
 
LVL 29

Assisted Solution

by:Badotz
Badotz earned 250 total points
ID: 34975872
Actually, it is:

disabled="disabled"
0
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 34975880
ah yeah hmm too late i need sleep..
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Closing Comment

by:Richard Korts
ID: 34975969
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
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 34976003
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
 

Author Comment

by:Richard Korts
ID: 34976048
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
 
LVL 29

Expert Comment

by:Badotz
ID: 34977152
No worries, glad to help.

Oh, and it is what it is.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now