{hero}

rows().nodes()

Since: DataTables 1.10

Get the row TR nodes for the selected rows.

Description

This method is used to get the nodes of for the row tr nodes in the rows matched by the selector.

Please note that the order of the nodes in the returned array and which rows the nodes are obtained from (searched rows, visible rows etc) is controlled by the selector-modifier option of the rows() selector used to get the selected rows.

Furthermore, 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.

Type

function rows().nodes()

Description:

Obtain the tr nodes for the selected rows

Returns:

DataTables API instance with each row's node from the selected rows in the result set.

Example

Remove a class from all rows which have that class currently:

var table = new DataTable('#myTable');

table
	.rows('.ready')
	.nodes()
	.to$() // Convert to a jQuery object
	.removeClass('ready');

Related

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