Difference between #4 and #5 of
How to make bootstrap tabs remain active/selected after navigating to different web pages.

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");
$(""+dash_localVar+"").addClass("active");
}
[...]
1 0
3 followers
Viewed: 20 811 times
Version: 2.0
Category: Tutorials
Written by: emrald
Last updated by: emrald
Created on: Oct 3, 2016
Last updated: 8 years ago
Update Article

Revisions

View all history