
jlee@versacreative.com(@jlee-versacreative-com)
2 Posts
Customers
Quote from jlee@versacreative.com on January 19, 2023, 19:22
Hi, I am trying to set the filter to where a user can just click on the category itself in order to select and trigger the filter. See this site for example.
I am using jQuery from this JSfiddle in order to convert the dropdown into actual buttons. I modified it a bit to add the class for the submit button to the new buttons - however, the issue is that when clicking on one of the categories, it triggers the filter as if no category is selected. I noticed that normally you would select a category, then a class called "selected" will get added to it, and then you would press the filter button in order to trigger the filter with that category selected. It seems like in this case, the filter is triggered on click before the "selected" class is added - is there any way to add the class on click and then trigger the filter? Or do you have any other suggestions for how to go about this issue? Thanks in advance.
Hi, I am trying to set the filter to where a user can just click on the category itself in order to select and trigger the filter. See this site for example.
I am using jQuery from this JSfiddle in order to convert the dropdown into actual buttons. I modified it a bit to add the class for the submit button to the new buttons - however, the issue is that when clicking on one of the categories, it triggers the filter as if no category is selected. I noticed that normally you would select a category, then a class called"selected" will get added to it, and then you would press the filter button in order to trigger the filter with that category selected. It seems like in this case, the filter is triggered on click before the"selected" class is added - is there any way to add the class on click and then trigger the filter? Or do you have any other suggestions for how to go about this issue? Thanks in advance.

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on January 20, 2023, 11:33
Hello
Unfortunately, the link to the example is not correct.
Please drop me exact link to the issue
Hello
Unfortunately, the link to the example is not correct.
Please drop me exact link to the issue

jlee@versacreative.com(@jlee-versacreative-com)
2 PostsTopic Author
Customers
Quote from jlee@versacreative.com on January 20, 2023, 16:17
Sorry about that, try this link:
https://www.primecabinetry.com/cabinetry/framed-collection/shaker-white.html?landing=website
We are trying to apply that example to this page: https://www.buywholesalecabinets.com/rta-shaker-white-cabinets/
Sorry about that, try this link:
https://www.primecabinetry.com/cabinetry/framed-collection/shaker-white.html?landing=website
We are trying to apply that example to this page: https://www.buywholesalecabinets.com/rta-shaker-white-cabinets/

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on January 23, 2023, 12:54
Hello
Sorry, this page doesn't have my filter.
Try to use this extension - https://share.pluginus.net/image/i20230123105317.png for categories
Hello
Sorry, this page doesn't have my filter.
Try to use this extension - https://share.pluginus.net/image/i20230123105317.png for categories