127
rated 0 times
[
128]
[
1]
/ answers: 1 / hits: 51021
/ 10 Years ago, wed, march 26, 2014, 12:00:00
I am trying to understand how to do this: http://getbootstrap.com/javascript/#tabs
I think the documentation is not detailed enough, because I can not understand how it works.
<div class=container>
<ul class=nav nav-tabs>
<li class=nav active><a href=#A data-toggle=tab>A</a></li>
<li class=nav><a href=#B data-toggle=tab>B</a></li>
<li class=nav><a href=#C data-toggle=tab>C</a></li>
</ul>
<!-- Tab panes -->
<div class=tab-content>
<div class=tab-pane fade in active id=A>Content inside tab A</div>
<div class=tab-pane fade id=B>Content inside tab B</div>
<div class=tab-pane fade id=C>Content inside tab C</div>
</div>
</div>
This code gives me what I want
However I can't switch between tabs.
So the question is: what JQuery or Javascript code should I add to make it work? What is shown in the example does not work :(
More From » jquery