{hero}

tables().footer()

Since: DataTables 1.10

Get the tfoot nodes for the tables in the API's context.

Description

DataTables and its plug-ins can create additional tables in the document. For example when scrolling is enabled, the table is split into three individual tables, the header, footer and body in order to provide cross-browser scrolling, while FixedHeader / FixedColumns create cloned tables for static positioning.

This method, and its singular counterpart, are provided to give easy access to the original tfoot elements for DOM manipulation.

Type

function tables().footer()

Description:

Get the tfoot nodes

Returns:

DataTables API instance with the table footer nodes from the selected tables in the result set.

Example

Add a class to the original tfoot element:

var tables = new DataTable('.dataTable', {
	scrollX: '100%'
});

tables
	.tables()
	.footer()
	.to$()
	.addClass('highlight');

Related

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