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'~~~~