jeudi 9 avril 2015

Dynamically set active menu item using data-toggle


Vote count:

0




I have a menu which is included in file A and B. I don't want any of my tabs to be active at first but after clicking on them I want to set the correct list item's class="active". I thought that the code below would do it. What do I need to add or change?



<ul id="navbar_menu" class="nav nav-tabs">
<li><a data-toggle="tab" href="#">A</a></li>
<li><a data-toggle="tab" href="#">B</a></li>
</ul>


FYI: I have included the following for the HTML page (do I need anything more than this):



href="http://ift.tt/1r529cJ">


asked 1 min ago







Dynamically set active menu item using data-toggle

Aucun commentaire:

Enregistrer un commentaire