[Solved] How I can change the style of row in a Child Table?

How I change the style of row in Child Table, for example then a condition exists, how can I change the background color of the row from default to blue?

// Assume that we have a child table --> mychild
// and I have the index of the row 
child_to_change_style = frm.doc.mychild[idx_of_the_row] 

Solve it with a JQuery selector like:

$('div[data-fieldname="field_name"]').find(format('div.grid-row[data-idx="{0}"]', [idx_of_the_row+1])).css('background','blue')

1 Like