caption.node()
Since: DataTables 2.0
Get the table's caption
element.
Description
This method provides direct access to the caption
element of the DataTable, if one has been set (caption()
).
Type
caption.node()
Direct access to the caption
element for the table.
Returns:
node
HTML caption
node or null if no caption is found.
Example
Add a data property to the caption using jQuery:
var table = new DataTable('#myTable');
table.caption('Table 1: Year averages');
$(table.caption.node()).data('total', 100);
Related
The following options are directly related and may also be useful in your application development.