Skip to Content

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

drop down box


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.



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

Former Member

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