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!

Checkbox disabled 1

Status
Not open for further replies.

itchyII

MIS
Apr 10, 2001
167
Hello All,
I have a checkbox that I want to display but it should be disabled (it is set to 'checked' and I do not want the user to remove the check). I have set the checkbox to 'disabled' but it grey's out the checkbox. The page will be used to print out information and this grey checkbox looks terrible once printed. I have tried setting it to read only but that does not work. Is there any way to make the checkbox disabled without it changing color?
Tks!
 
in the onclick you could put this.checked = true if you know if supposed to be always checked or this.checked=!this.checked if it could be either
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top