DropdownList.Enabled = False and Font Color?

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top