Vivek Tamrakar
Vivek Tamrakar

Reputation: 522

Add Div before table when using datatable

Add Div before table when using datatable

$('table').wrap('<div class="scroll_table"></div>');

Upvotes: 0

Views: 2403

Answers (1)

Chris Hopkins
Chris Hopkins

Reputation: 334

The dom element can be manipulated as per the following documentation to wrap divs around a lot of the data tables functionality including the table itself https://datatables.net/reference/option/dom

Upvotes: 1

Related Questions