I'm a javascript noob and I'm wondering how do I implement the answer to this question?
Twitter Bootstrap Tabs: Go to Specific Tab on Page Reload or Hyperlink
I want to use this code on the same page that the tabs are located....
<script type="text/javascript">
// Javascript to enable link to tab
var url = document.location.toString();
if (url.match('#')) {
$('.nav-tabs a[href=#'+url.split('#')[1]+']').tab('show') ;
}
// Change hash for page-reload
$('.nav-tabs a').on('shown', function (e) {
window.location.hash = e.target.hash;
})
</script>
Where inside the page containing the tabs should I plugg this in.
Again, so sorry for being such a noob.