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

Revision #5 has been created by emrald on Oct 7, 2016, 3:36:28 PM with the memo:

changed var hrefAttr = "a[href=\'"+dash_localVar+"\']";
« previous (#4)

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 799 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