I'm using Bootstrap 2.x. I've used a tabbed navigation and it's working well, provided the links used to move between the tabs are on the .nav-tabs themselves.
If I put a link the main body which refers to a link/target within the .nav-tabs list/menu, the content loads fine.
However, the .nav-tabs themselves don't change. That is to say a new tab and content shows, which is great, but since the .nav-tabs don't update two things occur:
- The wrong tab is active.
- The active
.navlink doesn't work. So say I went from tabhref="#nav-a"to tabhref="#nav-b"but from a link in the main content and not in the.nav-tabsthe link for#nav-astays active (and not clickable), preventing me from returning to it.
Should I be using data-spy or something like that?