Get the DOM elements for the selected cells.
This method, used in-combination with the
cells() method (and therefore the various selector forms that it allows) will obtain the DOM nodes for the selected cells, allowing them to be directly manipulated - for example adding a class.
Get the DOM elements for the selected cells
DataTables API instance with the
THcell elements in the set
Find cells with a jQuery contains selector and add a class:
var table = $('#example').DataTable(); var cells = table .cells( ":contains('Not shipped')" ) .nodes(); $( cells ).addClass( 'warning' );
The following options are directly related and may also be useful in your application development.