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

In the $(row).addClass('class') the first column is not changed by the class in css

$
0
0

The below code-

var table = $('#users_data').DataTable({
responsive: true,
"createdRow": function( row, data, dataIndex ) {
if ( data[4] == 'Online' ) {
$(row).addClass('online_device');
}
});
} );

This is the code used the 'online_device' is the css class used, everything working but the first element of the row is not changed by the css class 'online_device'~~~~


Viewing all articles
Browse latest Browse all 82607

Latest Images

Trending Articles



Latest Images

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