Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

datatable highlight cells based on their content

$('#example').dataTable( {
  "rowCallback": function( row, data ) {
    if ( data.grade == "A" ) {
      $('td:eq(0)', row).addClass("text-success");
    }
  }
} );
Source by datatables.net #
 
PREVIOUS NEXT
Tagged: #datatable #highlight #cells #based #content
ADD COMMENT
Topic
Name
1+2 =