Remove filter on search
Remove filter on search
Airprimus
Posts: 10Questions: 5Answers: 0
Hello,
I have a table which is automatically prefiltered with a filter ($('#table').DataTable().columns(1).search("String").draw();) on page load. Is it possible to remove this filter automatically when the search field is used?
Thanks Lars
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You can search for an empty string to clear the search, for exmple:
You could create an event handler for the search input. Something like this:
http://live.datatables.net/jorexujo/323/edit
Kevin