Hello,
I’m pretty new to JavaScript and I’ve been searching for a way to toggle the visibility of many divs with images inside.
Basically I want to have nothing visible, then I have three links that represent three categories of the images.
So for example if the user clicks the link “Illustration” I want all the divs with the class illustration to appear.
But when the user chooses a new link say, “typography” I want to hide the divs with class illustration and then show the divs with class typography.
Hopefully this is clear,
I would appreciate any help. Thanks!