Using checkboxs to filter data
Using checkboxs to filter data
I have try this code: http://live.datatables.net/rosahuka/1/edit
the idea i have is similar like the example, but with date filters, for example
checkbox today
checkbox this week
checkbox this month
how can i modify that example code so it dosent take the value exactly as it is, like for example
<input type="checkbox" name="pos" value="Director">Director
<input type="checkbox" name="pos" value="Direct">Director
So the value dosen´t have to be the same in order to filter
This question has accepted answers - jump to:
Answers
You can do something like this - it's just looking for the string inside the position field - try clicking "Developer".
Colin
I would start with this Date range filter plugin. Looks like it works similar to this number range example. You will need to modify where it gets the date range info, lines 3-4, to use the checkboxes.
Kevin
Thanks Colin, that was exactly what i was looking for
Thanks for the answer kthorngren, i will chek the plugin