Reset multiple column select filters

Reset multiple column select filters

sjw01sjw01 Posts: 67Questions: 36Answers: 1

I was going to do something with jQuery but thought I would check here first.

It looks like there are bits and pieces that might be able to help.

I have a table with 3 x drop down select column filters.

Example: http://live.datatables.net/lidequra/9/edit

I was thinking of adding another button called "Clear Filters" which would:
1. Reset the select drop down to default
2. Reset the data in the table

Ideally, I would be happy with a "Reset" button which simply redrew the whole table if possible?

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    The drop downs aren't really part of the DataTable as such, so resetting the table wouldn't clear their values. So as you say, the best bet would to be change the values with a jQuery statement.

    C

This discussion has been closed.