Remove active class for pressed item in side menu


#1

I have a side menu with a list, and some items in that list redirects you to another page. In every child page, the side menu is deactivated, only in the root page I let it show. When I return to my root page and open the menu again, the list item I just clicked to navigate is still “active” (is grayed out). Is there an easy way to remove the “active” state? I don’t want to use jquery to do this. Thanks!


#2

I would probably try giving each of your menu items a class and override the styles that defines the look of an active state rather than trying to remove it via JavaScript…


#3

Thank you, i had not think of that, i’ll give it a try