Reputation: 93
The Jquery data table allows features such as pagination, search, page information, and # of items in one page. I only want the pagination functionality, and want to disable the rest. Could someone take a look at my code and see where the problem is?
$('#myTableId').DataTable()({
"search" : false
"info": false
});
Upvotes: 1
Views: 664
Reputation: 15923
Remove the extra parenthesis from Datatable function, you must call it with the options inside
$('#myTableId').DataTable({ "search" : false, "info": false });
Upvotes: 1