Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Giving a read-only check box a disabled effect

Status
Not open for further replies.

ajindal

Programmer
Oct 7, 2003
11
IN
Hi,
I have made my check box read-only but I want it to give it a disabled effect. I don't want to use checkbox.disabled = true. Instead I want to make it read only and make it look like a disabled checkbox. One thing is that I can paste an image over it...Is there any other way out.
Regards
 
i think css is what u want. check out the HTML/Css forum...

Known is handfull, Unknown is worldfull
 
Actually I want to show the effect temporarily.
 
thats ok. that can be managed. first see if u can bring that effect with css...

Known is handfull, Unknown is worldfull
 
I don't want to use checkbox.disabled = true.
Why not? If you are making it readonly, it's basically the same, and you can disabled=false it whenever you need to.

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
Thanks...actually I don't want to make it disabled because it is giving the same problem I have already posted before. The partial solution to the previous thread I posted is:
i used
checkbox.attachEvent("onClick",clickHandler);
In clickhandler I returned false.
so it works.
But I have to give the checkbox the effect of a disabled checkbox.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top