Changes
Title
unchanged
How to make bootstrap tabs remain active/selected after navigating to different web pages.
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
bootstrap3, tabs, active tabs
Content
changed
[...]
if(dash_localVar){
$(".dashboard_tabs_cl > li").removeClass("active");
$(".tab-content > div").removeClass("active");
var hrefAttr = "a[href=\'"+dash_localVar+"
\']";
if( $(hrefAttr).parent() ){
$(hrefAttr).parent().addClass("active");[...]
return returnVar;
}
}
});'
); ?>
```
Done!.