David Yang
David Yang

Reputation: 93

JQuery Datatable Feature enable / disable Not Working

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

Answers (1)

Tushar Gupta
Tushar Gupta

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

Related Questions