Checkboxes "exclusive" filtering
Checkboxes "exclusive" filtering

Hi,
http://live.datatables.net/catoponi/1/edit
When I select both the checkboxes A and B, I want the table to only show me the row with "A, B", without the row "B".
How can I achieve that?
Thanks!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You can build something using this:
https://datatables.net/manual/plug-ins/search#Example
This will give you the flexibility you need. I use this a lot for client side filtering. You don't need to develop a plugin but you can just use $.fn.dataTable.ext.search.push in your code.
Here is an example from my own coding. If you have several data tables on your page you need to make sure you are applying it to the right table. Hence the checks for "undefined". By default it will run on all data tables on your page. It has to run before data table initialization.
Thank you for you answer!
I know it's too much to ask, but is there any way you could show me how it works on a live.datatables.net? I can't seem to make it work by myself...
Here is a simple example:
http://live.datatables.net/fojabeqa/1/edit
You may need to do some basic error checking and data normalization (remove whitespace characters) for more robust solution.
Kevin