Using checkboxs to filter data

Using checkboxs to filter data

alang2205alang2205 Posts: 18Questions: 11Answers: 0

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

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    You can do something like this - it's just looking for the string inside the position field - try clicking "Developer".

    Colin

  • kthorngrenkthorngren Posts: 21,330Questions: 26Answers: 4,951
    Answer ✓

    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

  • alang2205alang2205 Posts: 18Questions: 11Answers: 0

    Thanks Colin, that was exactly what i was looking for

  • alang2205alang2205 Posts: 18Questions: 11Answers: 0

    Thanks for the answer kthorngren, i will chek the plugin

Sign In or Register to comment.