?
Solved

Readonly attribute

Posted on 2011-02-24
8
Medium Priority
?
298 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 1000 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 1000 total points
ID: 34975872
Actually, it is:

disabled="disabled"
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
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…
Suggested Courses

741 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