Solved

Readonly attribute

Posted on 2011-02-24
8
297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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.…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

724 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