I need to method to implement something similar to what is on this webpage
http://www.brownthomas.com/brands/
I will have a list of brands on the page. each brand should have 3 pieces of information:
- starting letter
- store (could be mulitple)
- category (could be mulitple)
So I need 3 select boxes, when one of the select boxes is selected it will filter the brands underneath based on this.
I would like the filter to happen within the browser through javascript.
So I was thinking, I some how add some extra information on the brands, and then remove everything from view that does not match the select box criteria.
Any idea how I could achieve this?
Also I will be using wordpress and Advanced Custom Fields to achieve this from the backend in terms of entering the brands. I just dont know where to start.
i was thinking something like this
<div classs="brand-holder">
<div class="brand-column">
<h3>0-9</h3>
<ul class="brand-list">
<li data-alpha="0" data-store="Arnotts,BrownThomas" data-category="Mens Wear, Shoes">Brand name</li>
</ul>
</div>
<div class="brand-column">
<h3>A</h3>
<ul class="brand-list">
<li data-alpha="A" data-alpha="A" data-store="Arnotts,Dundrum" data-category="Womens Wear, Cosmetics" >A Brand Name</li>
</ul>
</div>
</div>
But I don’t know how, I would build this in the backend.
==========edit added=========
i want to the backend doesn’t allow me segregate the categories relevant to the stores . here is an example Chanel, Brown Thomas Sells women’s wear, footwear,jewellery and accessories and beauty. Arnotts only sells beauty. Dundrum sells beauty and accessories. how would i achieve this?
i was thinking something like this would work for layout , but i wouldnt know the javascript to work with the select boxes
<div classs="brand-holder">
<div class="brand-column">
<h3>A</h3>
<ul class="brand-list">
<li data-alpha="A" data-store="Arnotts,Dundrum,brownThomas" data-arnotts-category="Womens Wear, Cosmetics" data-dundrum-category="Womens Wear" data-brownThomas-category="Beauty" >A Brand Name <i>[store:Arnotts,Dundrum :: category: Womens Wear, Cosmetics]</i></li>
</ul>
</div>
-== edit added======
This is how the information is selected in the backend at the moment,

but i need it so it will work with something like this

Here is your code… Live Demo
HTML
No change in your data part, just added the
selectelements.CSS
Javascript
jQuery (instead of Javascript)
Solution: 2 Live Demo
HTML
CSS
jQuery