D
D
DevLev72021-07-01 16:04:36
JavaScript
DevLev7, 2021-07-01 16:04:36

How can I implement a double button filter in js?

Hello! Your help is very much needed.
I have a task to implement a filter in JS that will display posts depending on the filter.
The difficulty is that you need to synchronize two filters, by year and by name.
Let's say: we press "Sports ground" all records with the tag sports ground for all years are displayed, then we press "2017" all records "sports ground for 2017" are displayed. https://jsfiddle.net/katerinalevkina7/xpjdvcyh/18/
60ddbd1d747d5675547082.png
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question