Simple Filtering with Javascript and jQuery

Hi, I am creating a simple product filtering section for my website using jQuery and javascript. I have created a simple example here on ** JSFIDDLE . It works well, but I want to show child categories according to the filter. I am using a simple map functionFor Eg: If the result section are showing only iPad Air2 & iPad Air, then the accessories section mush show Apple TV. For iPad Mini3, Mini2, Mini the accessory will be Apple EarPods. If the filter results include both iPad Air and iPad Mini versions, then those two accessories will be displayed. Please help. Thank you.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.