$(document).ready(function() { var table = $('#example').DataTable(); var tt = new $.fn.dataTable.TableTools( table );

$( tt.fnContainer() ).insertAfter('div.info'); } );

# Initialisation with `new`

Typically when working with TableTools, the initialisation and insertion into the DOM will be done automatically by DataTables, through the use of the `dt-init dom` parameter. However, it is also possible to initialise TableTools manually as shown in the example below using `new $.fn.dataTable.TableTools();`.

Once initialised you can insert the TableTools tool bar node anywhere you wish into the DOM using the `fnContainer()` API method to get the node.