Results 1 to 3 of 3

Thread: Select list with different colors

  1. #1
    Guest

    Unhappy

    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...


  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Try this:
    Code:
    <select name="customer" size="10"> 
    <OPTION value="number" style="background-color: red">CustomerName</OPTION> 
    </select>
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3
    Guest
    Thanks! that works great

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width