cell().node()

Since: DataTables 1.10

Get the DOM element for the selected cell.

Description

This method, used in-combination with the cell() method (and therefore the various selector forms that it allows) will obtain the DOM node for the selected cell, allowing it to be directly manipulated.

Type

function cell().node()

Description:

Get the DOM element for the selected cell

Returns:

The TD / TH cell the selector resolved to

Example

Select a single cell using a jQuery ID selector and add a class:

var table = $('#example').DataTable();

var cell = table
	.cell( "#importantCell" )
	.node();

$( cell ).addClass( 'warning' );

Related

The following options are directly related and may also be useful in your application development.