DevBest.com - Community of Developers & Gamers

Markshall
Markshall
What do you mean?
pmslice
pmslice
I click on the colored buttons that have anchor links, but they do not close, they are still open, since I am still on the same page.
pmslice
pmslice
is there any way the buttons close after clicking on anchor links on the same page?
Markshall
Markshall
You could set up a looped event listener on the coloured buttons that target anchor links, and once they’ve been clicked close the main button thing

I’ll prob do a codepen tomorrow if I get time
Top