Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

drop down box

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

Former Member
replied

the js syntax for coloring the selected value is

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question