I want to change the checkbox so the background is gray and the check is red and it cannot be typed into. I want this because that is what I have set other input boxes to when the disabled radio button is selected.
From what I was told you can't change the style of a disabled checkbox. If you can please give me the code and I'll change the colors that way.
Eventually I would like to have this on a style sheet or as a tag so that every page will look the same when it is disabled. But first I want to get the page to look the way I want it to.
Main Topics
Browse All Topics





by: pravinasarPosted on 2005-10-26 at 06:54:09ID: 15162478
It's important to understand that READONLY merely prevents the user from changing the value of the field,
not from interacting with the field.
For many types of fields, READONLY is irrelevent because you don't normally change the value.
In checkboxes, for example, you can check them on or off (thus setting the CHECKED state) but you don't change the value of the field.
DISABLED, however, actually prevents you from using the field. Notice in these examples that you can set the checkboxes even though they are "read only":