Make a checkbox which filters content from table
Make a checkbox which filters content from table
ggiavelli
Posts: 5Questions: 3Answers: 0
I'd like to make a checkbox which filters out all rows which have a column of a set value from display in the table. But so that it works like a show/hide function on those rows, but still allows the regular search to happen.
This discussion has been closed.
Answers
A search plugin will work well for this. Here is an example I created previously.
http://live.datatables.net/rosahuka/1/edit
Kevin
EIDT: Added link to search plugin docs.
Thanks Kevin, that's it exactly. Muchos appreciados
Hello kthorngren how would i do the exact opposite i need to hide rows that have a value by checking a checkbox
The search plugin docs describe how to control which rows are displayed:
Here is the updated example - return
false
if there is a match to hide the row:http://live.datatables.net/bohaqeho/1/edit
Kevin
Thanks Kevin!