Isotope reset search results when clicking on Show all button
-
I have a page that display a list of all countries.
I’m using Isotope buttons as follow:Show all
North America
Asia
Africa
Europe
…Including the “Search field”
Let’s say for I’m showing all the countries (didn’t filter countries by continent).
If I search for “Can” in the search field, it displays all countries that has “Can” in the title, so far this is working.
The idea is that, after showing all the countries that has “Can” in the title, if I click the “Show all” button, I want it to clear the “Search field” and show all the countries.
Same thing, if I filtered the countries by “Continent”, let’s say I click on “North America”, it shows the countries in “North America”, this is working.
Now from this list showing the countries in “North America”, if I type in the “Search field” “Can”, it shows all the countries under “North America” that has “Can” in the title. This is also working.
Now if I click on “Show all”, I also want to clear the “Search field” and show all the countries in all the continents.
In other words, when clicking on “Show all” it should reset all the filters including the “Search field”.
Is there an event I can add to the “Show all” button to apply this?
- The topic ‘Isotope reset search results when clicking on Show all button’ is closed to new replies.