Datatable Checkbox regex

Datatable Checkbox regex

Escobedo97Escobedo97 Posts: 12Questions: 7Answers: 0

Im using this code as an example of what i want to do:http://live.datatables.net/rosahuka/1/edit
The diference its that i want to filter the checkbox like for weeks, for example i want a checkbox that says This week and that the value is 2009/01/12|2012/12/02|2012/03/29, i have already see this example regex to use the | to write in between values and it works fine, but i have not succefully use that on a checkbox value, i know that there is a tool that filter date ranges with a input that displays a calendar, but i do not need that, i need a checkbox called "this week" and assign it a this value 2009/01/12|2012/12/02|2012/03/29 so the datatable show me the three values dates

This question has an accepted answers - jump to answer

Answers

  • Escobedo97Escobedo97 Posts: 12Questions: 7Answers: 0

    can someone please provide me with a simple code that as an example that uses a checkbox with this value="2009/01/12|2012/12/02|2012/03/29" and the datatable show me the 3 dates

  • Escobedo97Escobedo97 Posts: 12Questions: 7Answers: 0

    im using this as an example: http://live.datatables.net/rosahuka/1/edit

  • kthorngrenkthorngren Posts: 21,443Questions: 26Answers: 4,974
    Answer ✓

    In the search plugin you will need to generate the list of dates for the current week, if the checkbox is checked. Use Stack Overflow or other tutorials like this to find the technique that works best for you.

    This example will give you some basic logic with the dates you provided above. You will need to create the code to generate the array of dates for the week.
    http://live.datatables.net/rosahuka/625/edit

    Kevin

  • Escobedo97Escobedo97 Posts: 12Questions: 7Answers: 0

    okay thanks Kevin, that is exactly what i was trying to achive

Sign In or Register to comment.