There is such a tab from bootstrap:
<ul id="myTab" class="nav nav-tabs"> <li class="active"><a href="#home" data-toggle="tab">Первая вкладка</a></li> <li><a href="#profile" data-toggle="tab">Вторая вкладка</a></li> </ul> <div id="myTabContent" class="tab-content"> <div class="tab-pane fade in active" id="home"> <p>Содержание первого таба</p> </div> <div class="tab-pane fade" id="profile"> <p>Содержание второго таба</p> </div> </div>
How to implement a link to the content of the second tab from another page? I tried through anchor site.ru/page.html#profile
, but the link displays the contents of the first tab.
$(function(){});
the hash is in document.location.hash - zb '11