<div class="tabs">
<ul id="tab" class="nav nav-tabs">
<li class="active">
<a href="#feed" data-toggle="tab">Feed</a>
</li>
<li>
<a href="#dashboard" data-toggle="tab">Dashboard</a>
</li>
</ul>
</div>
When a user clicks the link below. i want to change the #dashboard li to active, and remove active from the #feed li. how do i do this?
<a href=".showfollowers" onclick='load_followers();' data-toggle="tab">See All</a>
You better use unobtrusive javascript:
Code:
Though it can be done with inline scripts, inline code is deprecated.