I am trying to accomplish a filtering function. However I am having a ton of issues selecting the images within the gallery.
I have a gallery with images that link to pages & I want to filter them out by category:
Here is the visual of what I want to accomplish when a category is clicked I would like the gallery to only show item within that category.
First of all how would I go about selecting the individual images within the gallery?
I tried something akin to this:
but it does not recognize #image1 as a selector. Also how could I go about tagging each image to their corresponding category especially if it lives in multiple categories, and the click event that would enable two or more categories to be clicked?
I am truly stumped!