I need to create background as yellow while selecting the gear icon for the menu option in the table row, I have tried the below code for highlighting the table row,
<
Check the difference between :first and :first-child
var view = Core.view.Menu.create({
model: model,
menuContext: { ibmm: ibmm },
anchor: this.$(),
highlight: this.$().parents('tr:first-child').css('background-color','yellow')
});
view.show();
you can try below jquery to reset your background color where event will occur on focusout.
$(function(){
$("table.content-table.highlighted tr.content-row").on("focusout", function(){
$(this).css('background','#FFFF00 none 0 0 repeat'); // change color code as per your need
});
});