-
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...
-
Try this:
Code:
<select name="customer" size="10">
<OPTION value="number" style="background-color: red">CustomerName</OPTION>
</select>
-