Get the row
TR node for the selected row.
This method is used to get the
tr node of row matched by the
row() selector used.
Please be aware that using
deferRender will cause some nodes to be created only when they are required for display, so they might not be immediately available when this method is called.
As a singular function,
row().node() operates on only a single row and will truncate other rows if more than one is found to match the selector used. Use
rows().nodes() if you require to work with multiple rows.
trnode for the selected row
trelement of the selected row or null if the element is not yet available
Add a class to a specific row:
var table = $('#example').DataTable(); var row = table .row( '#row-4' ) .node(); $(row).addClass( 'ready' );
The following options are directly related and may also be useful in your application development.