I use the tabstrap plugin for Twitter downloads and it requires a link that activates the tab to contain a fragment of the URL starting with # , followed by the id div containing the contents of the HTML tab.
<a href="#home" data-toggle="tab">Home</a> <div class="tab-pane" id="home">...</div>
Is there a way to get rid of the need to use # ? In addition, I tried to remove the link # in the link and, clicking the link, somehow does not force the browser to follow the link!
I use backbone.js and pushstates, so I am looking for a link that does not contain # , and clicking on it should update the web address to mydomain.com/home instead of mydomain.com/#home .
<a href="home" data-toggle="tab">Home</a> <div class="tab-pane" id="home">...</div>
A...
$(function() { $('a[data-toggle="tab"]').on('shown', function(e) {
Can this be done? Or am I better off using backbone.js to write my own tab functionality?
source share