lesmawlimmict
New Member
I hope I can explain what I wanna achieve here.I'm using a bit of a code from twitters bootstrap, a sort of navbar tabs.These tabs seems to be retrieved using the #tab feature. Lets say this menu is on a file called index.php\[code\]<div class="bs-docs-example"> <div class="tabbable tabs-left"> <ul class="nav nav-tabs"> <li class="active"><a href="http://stackoverflow.com/questions/12736538/#tab1" data-toggle="tab">Section 1</a></li> <li><a href="http://stackoverflow.com/questions/12736538/#tab2" data-toggle="tab">Section 2</a></li> <li><a href="http://stackoverflow.com/questions/12736538/#tab3" data-toggle="tab">Section 3</a></li> </ul> <div class="tab-content"> <div class="tab-pane active" id="tab1"> <p>I'm in Section A.</p> </div> <div class="tab-pane" id="tab2"> <p>Howdy, I'm in Section B.</p> </div> <div class="tab-pane" id="tab3"> <p>What up girl, this is Section C.</p> </div> </div> </div> </div>\[/code\]But how can i from another page like main.php jump straight to the tab2? u get my point?I was trying:\[code\]<a href="http://stackoverflow.com/questions/12736538/index.php#tab2">link to tab2</a>\[/code\]or\[code\]<a href="http://stackoverflow.com/questions/12736538/index.php#tab2" data-toggle="tab">link to tab2</a>\[/code\]but it's not working..., don't know if the data-toggle="tab" is needed somehow?any hints appreciated!