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!

jquery to change td text backgound color

jfr620Aug 3 2015 — edited Aug 3 2015

I have the following dynamic action jquery executing on page load of a report.  If the value in a certain <td> column "BUDGET_MANAGER_APPROVAL is 'Rejected' I want to change the background color to red for the entire row.  Can someone point me to the best syntax and way to do this?   TY.

$('tr td[headers="BUDGET_MANAGER_APPROVAL"]').each(function(){

    if (.innerHTML = "Rejected") {

        $(this).closest('tr').attr('style','background-color:red');

    }

});

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 31 2015
Added on Aug 3 2015
3 comments
902 views