Topic: nav item active current page

teawebsite pro asked 5 years ago

Hi there, I'm trying to set up nav item link as active for the current page. I used a little script like this <script> $(".nav a").on("click", function(){ $(".nav").find(".active").removeClass("active"); $(this).parent().addClass("active"); }); </script> but no lucky. Can you help me?

Mirosław Stasiak free answered 5 years ago

Hi, could you send me files with your code with this issue here or on ? Then I will help you. regards, Mirek

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: Pro
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No