php - How to set "class = active" for second tab? -
i have tabs. in first tab "introduction" , "outline" first tab. have set introduction class=active when comes first. when outline comes first not getting how set class active. code below <ul class="nav-tabs" role="tablist"> <?php $tabs = array(); if(!$sessid == "" && !$checkcourse){ $tabs = array("introduction"=>true, "outline"=>true,"announcement"=>false,"discussion"=>false,"review"=>true, "student"=>true, "comment"=>true); } else if($sessid == "") { $tabs = array("introduction"=>true, "outline"=>true,"announcement"=>false,"discussion"=>false,"review"=>true, "student"=>false, "comment"=>true); } else { $tabs = array("introduction"=>false, "outline"=>t...