I have a menu in a tag called sf-menu
.
I need the visibility to change to none
when the link is clicked and toggled back when clicked again.
Can I achieve this with CSS only or do I need JavaScript?
Hoping someone can help me with an example.
.sf-menu {visibility: visible}
<a class="closed" href="#sidewidgetarea"> Switch</a>