in datatable to assign class to the td (row) we want createdRow We are using , but I can't reach the detail td , detail td the s eq() how to get there?
"createdRow": function ( row, data, index ) {
$('td', row).eq(2).addClass('green');
}
detailed examination
https://codepen.io/BesiktaS_JK/pen/JjddXbW
I want to create this:
try, but it didn't happen
'createdRow': function(row, data, dataIndex){
var match_result = data["match_result"];
if(match_result=="2-2"){$('td', row).eq(5).css('background-color', 'Orange');}
},