PDA

Click to See Complete Forum and Search --> : Select list with different colors


Nov 10th, 2000, 02:01 PM
Having a problem with an ASP page where I load a selection list (with code) using the <SELECT></SELECT>. As I load the list, I want to change the color of a list item when a situation occurs.

I have tried the following:

<select name="customer" size="10">
<OPTION value="number" color="red">CustomerName</OPTION>
</select>

I have also tried...

<select name="customer" size="10">
<OPTION value="number"><font color="RED">CustomerName</FONT></OPTION>
</select>

I have also tried

<select name="customer" size="10">
<FONT COLOR="RED">
<OPTION value="number">CustomerName</OPTION>
</FONT>
</select>

Any suggestions would be greatly appreciated...

monte96
Nov 10th, 2000, 10:44 PM
Try this:

<select name="customer" size="10">
<OPTION value="number" style="background-color: red">CustomerName</OPTION>
</select>

Nov 14th, 2000, 11:07 AM
Thanks! that works great