Streaming live at 10am (PST)

Closing DIVS when another is open

If you look at the site, I have multiple options depending on what the “Client” would want to know about the product. I have set these all to click interactions that open and close. How would I go about automatically closing an open tab when another is clicked?


Here is my public share link:

Hey man,

I would suggest looking at tabs as an easier solution.

If you wanted to go about the way you’re currently doing it, you could add additional click functions to each ‘button’ that would set display:none on all the possibly open divs. Hope this makes sense, let me know if that works for you.