Solved

Readonly attribute

Posted on 2011-02-24
8
294 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 29

Expert Comment

by:Paul Jackson
ID: 34975880
ah yeah hmm too late i need sleep..
0
 

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

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

860 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