This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Struts and the fly likes Readonly Checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Readonly Checkbox" Watch "Readonly Checkbox" New topic

Readonly Checkbox

Sangita Mishra

Joined: Jun 15, 2005
Posts: 22
Is there a way do disable switching te checkbox on/of and making it grey.

I want to create a grey checked checkbox.

When I use "disabled" in the input tag it doesn't submit the value of the checkbox.
Paul Lester
Ranch Hand

Joined: Dec 27, 2002
Posts: 40
Any html field that is disabled will not be submitted. If you want to display a disabled checkbox _and_ have the value submitted, you'll have use a hidden variable to carry the value.



Where Photography meets vision.<br /><a href="" target="_blank" rel="nofollow"></a><br />Please stop by!<br /> <br />SCJP,SCWCD,SCJD,SCEA
I agree. Here's the link:
subject: Readonly Checkbox
jQuery in Action, 3rd edition