$.fn.datatable.ext.search.push apply on specific table
$.fn.datatable.ext.search.push apply on specific table
erpankajs
Posts: 4Questions: 0Answers: 0
I am using this for custom search, but getting some issue. My script.js file container appx. 12 DataTables. Only one table need the custom search. I am searching this $.fn.datatable.ext.search.push
form the doc. But not found any way to fix this on specific table.
Suggest me how to fix this only to one DataTable when js file contains more tables.
Thanks
This discussion has been closed.
Replies
At the moment what you need to do is use
settings.nTable.id
which will give you the table id inside the function you add. Then you can check to see if you want to apply your filter to that table or not.I know its not brilliant that, I will be improving that for the next major version.
Allan
Thanks allan