B
Brian McCullough
Hello,
I need to be able to modify the font color of the text displayed within a
disabled DropdownList (i.e. <select>). I have tried adding the following to
my css:
select[disabled]{
color:red;
}
The above renders "correctly" on the latest version of Firefox, but not in
IE 6 or 7. When I say "correctly", I mean that any disabled select elements
(i.e. <select disabled="disabled">) are disabled on the browser window, but
the font color is correctly displayed as Red in Firefox (but not IE).
I have tried several different variations of this to try and work with IE,
but no luck. My next course of action is to try to create a style that will
mimic the "disabled" look of a select element, but I have concerns about
preventing a user from changing the value in the dropdown (select elements
don't support the readonly attribute).
Anyone come across this situation? Any ideas?
I need to be able to modify the font color of the text displayed within a
disabled DropdownList (i.e. <select>). I have tried adding the following to
my css:
select[disabled]{
color:red;
}
The above renders "correctly" on the latest version of Firefox, but not in
IE 6 or 7. When I say "correctly", I mean that any disabled select elements
(i.e. <select disabled="disabled">) are disabled on the browser window, but
the font color is correctly displayed as Red in Firefox (but not IE).
I have tried several different variations of this to try and work with IE,
but no luck. My next course of action is to try to create a style that will
mimic the "disabled" look of a select element, but I have concerns about
preventing a user from changing the value in the dropdown (select elements
don't support the readonly attribute).
Anyone come across this situation? Any ideas?