Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Change the background color of a select list in a tabular form

Paul FerrisNov 12 2018 — edited Nov 14 2018

OK,

I have a select list within a tabular form that acts as a traffic light, and I want to color the background of the either the select list or the cell the value is displayed on, to match the value of the option.

13-11-2018 10-15-11 AM.jpg

Using what was stated on I tried creating a DA that executed the following

$("#f06>option").each(function() {

$(this).css({backgroundColor: this.value});

});

But it isnt doing anything.

What am I doing wrong

Thanks

Comments
Post Details
Added on Nov 12 2018
3 comments
475 views