TableTools not working
TableTools not working

I am trying to initialize a tabletool for my datatable and keep getting "undefined is not a function"
$(document).ready( function () {
var table = $('#mytable').dataTable();
var tableTools = new $.fn.dataTable.TableTools( table, { // the error is here "undefined is not a function"
"buttons": [
"copy",
"csv",
"xls",
"pdf",
{ "type": "print", "buttonText": "Print me!" }
]
} );
$( tableTools.fnContainer() ).insertAfter('div.info');
} );
I am doing exactly as in the documentation and nothing works.
I am importing the tabletools file properly (tested).
My datatable was created successfully.
Any thoughts. Please help...
This discussion has been closed.