Topic: clicked menu item heilight in slide nav

ganesh55 free asked 5 years ago

i want heilight the clicked submenu item in slide nav

I am a pro user, and I would like to mark an item of the side menu active when the route is selected. Is there a class for that ? I blindly tried active on either a or li but it does not highlight the li element in the ul list inside the mdb-item-body. Thank you in advance.

Bartłomiej Malanowski staff commented 5 years ago

what's the technology you use on your site? Or maybe do you only want to know how to "highlight" the current menu item pro commented 5 years ago

Hi, sorry I didn’t notice I left the Angular section. So yes, I’m using the Angular version of MDB. I probably should ask there instead. But yes my goal is to highlight the current “li” in the current menu-item. Adding “active” class to a li or a anchor element inside a li doesn’t highlight anything.

SideNav is a premium component. You cannot use it for free

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • User: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No