javascript - Link to a bootstrap tab using a specific URL -


i developing website using bootstrap, using bootstrap tabs feature navigate between pages without loading other html files, trying allow urls point pages, here issue..

i can set url go said page using

    var url = document.location.tostring(); if (url.match('#')) {     $('.nav-tabs a[href=#'+url.split('#')[1]+']').tab('show') ; }  

but won't show of content on page unless navigate out of page , in, if put text in tab, wouldn't show, if opened tab, , went in page linked work fine.

here link i'm working on: http://xuz.co/dev/takistanmain/

navigating pages works, when use url http://xuz.co/dev/takistanmain/#about show blank page can see.

let me know if need anymore info , thank assistance!


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -