cancel
Showing results for 
Search instead for 
Did you mean: 

drop down box

Former Member
0 Kudos

Hi,

could you give me any tip to make a selected entry with color for drop down box:

For the text it works good to mark up a color( with java script), but

I would like to mark up a selected entry with "red color" or "yellow color in drow down box.

Any help would be appreciated.

Thanks.

Gauguin

Edited by: Gauguin on Jul 12, 2009 7:43 AM

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

the js syntax for coloring the selected value is


DDLB = document.getElementById('DDLBID');
DDLB.options[DDLB.selectedIndex].style.background = "red" ;

Answers (0)