i am a front-end developer and really bad at coding JavaScript so, can anyone of you help me create two filter buttons which are dependent on each other? these buttons should also be able to filter data.
i've found a reference but it is in jquery. if you could help me convert it on javasript that would be really great. here it is [https://codepen.io/nrwilliams/pen/LNrgBy]
please help :"(( thank you!!!
Here is a version - you must click Filter button - I would personally just run the filter on change
I changed the selector and toggle logic from the original since it was not elegant