I'm trying to get all tables (which are dataTables) on a page,
CODE:
$(window).load(function(){
if($.fn.dataTable)
{
var tables = $.fn.dataTable.fnTables();
}
});
Getting the following error,
has no method 'fnTables'
$.fn.dataTable
is defined and no errors there, so, I searched for fnTables
in the jquery.dataTables.js
file and I couldn't find it.
But, .fnTables()
is THE way to do what I want as per the datatables site.
What can I do?
DataTable version is 1.9.0