Drop down- Color

Javascript coding ..

Moderators: macek, egami, gesf

Balaji Ramachandran
New php-forum User
New php-forum User
Posts: 2
Joined: Fri Feb 25, 2005 10:47 pm

Drop down- Color

Postby Balaji Ramachandran » Mon Feb 28, 2005 3:18 am

How to set a color for the option value in select , i.e Combo box, I want to have the Second option with color ie, Ticket(black)- SoldOut(RED) . :help:

User avatar
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby ruturajv » Mon Feb 28, 2005 10:47 pm

Code: Select all

<select ..>
<option style="background-color: #ffffff;">White</option>
<option style="background-color: skyblue;">Skyblue</option>

I have a good friend by the Same name that ya have ... :D

Return to “JavaScript”

Who is online

Users browsing this forum: No registered users and 2 guests