Umar Umar - 1 year ago 108
jQuery Question

How to remove duplicate active class from bootstrap tab <li> tag

I have used two menu's to display the tab-pane (bootstrap). But it creates duplicate active link for



there should have only one active class for
for last active link. Any way to fix this?

Answer Source

You can add a little part of JS, like this :

$('.nav a').click(function(){
    $('.nav li').removeClass('active');


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download