Hey all,
I'm trying to make a link outside of the nav-tabs class, specifically in a paragraph, that changes to another tab on the same page.
Granted that I know this requires JS and that I know nothing of JS (Another book i ordered this morning :) ) here is what I've tried (with partial success):
My link: <a class='tab-switch' href='#tab_1_3' data-toggle='tab'>biography</a>
My JS:
$('.tab-switch a').on('click', function (e) {
e.preventDefault();
$(this).tab('show');
});
});
What currently happens:
When the link is clicked the CONTENT of the tab changes (woop!) but the tab NAV <li> doesn't change. So I'm seeing the right content but the actual tab at the top doesn't change.
Which oracle will save me this time? :)