Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81728

Datatable rowdetail td addclass add

$
0
0

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');}

},

Viewing all articles
Browse latest Browse all 81728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>