I\'m developing a web page in which I\'m using Twitter\'s Bootstrap Framework and their Bootstrap Tabs JS. It works great but I am trying to add extra links outside the tabs
You can use jQuery to get the page url #hash and select the Bootstrap tab...
var hash = document.location.hash;
if (hash) {
$('.nav-tabs a[href='+hash+']').tab('show');
}
// Change hash for page-reload
$('.nav-tabs a').on('shown.bs.tab', function (e) {
window.location.hash = e.target.hash;
});
Code: http://codeply.com/go/RypzN2UXKF
Demo (select tab 2): http://codeply.com/render/RypzN2UXKF#tab2