Hide all rows by default, show rows on search
Hide all rows by default, show rows on search
![nw](https://secure.gravatar.com/avatar/5c79bd4808e067e27294f5a25e63d833/?default=https%3A%2F%2Fvanillicon.com%2F5c79bd4808e067e27294f5a25e63d833_200.png&rating=g&size=120)
Hi All,
I'm looking to reverse the functionality of the search. I want all rows hidden by default, and then when a search term is entered, matching rows become visible.
Is this possible or will I have to write some jQuery to complete this?
Answers
DataTables' "search" is technically a filter rather than a search, since it removes items from a lost based on the input.
Two options spring to mind though:
Allan
Here's an example of Allan's first suggestion - it hides the rows when there's on search,
Colin