I read pretty much all related posts in order to find a solution to my simple problem, but with little success.
What I want is simple: when a user clicks on the brand (logo), it should redirect him to a specific tab and also make it active (clicked).
Can someone show me how can this be done?
Brand:
<div class="navbar-header">
<a class="navbar-brand" href="#menu2" data-toggle="tab" ><img
src="includes/images/logo.png" alt="Logo" class="logo"></a>
</div>
Main:
<div class="container">
<section id="main" >
<ul class="nav nav-tabs right-to-left" id="myTab" >
<li class="active"><a data-toggle="tab" href="#menu2"></a></li>
<li><a data-toggle="tab" href="#menu0"></a></li>
<li><a data-toggle="tab" href="#menu1"></a></li>
<li><a data-toggle="tab" href="#menu2"></a></li>
<li><a data-toggle="tab" href="#menu3"></a></li>
</ul>
<div class="tab-content">
<div id="menu0" class="tab-pane fade in active">
<div id="menu1" class="tab-pane fade">
<div id="menu2" class="tab-pane fade">
<div id="menu3" class="tab-pane fade">
Currently I managed to open the tab with this line of code:
<a data-toggle="tab" href="#menu2">
What else do I need to also make the #menu2 tab active?
EDIT: Tried the solution here: Linking to a Bootstrap Tab from outside - how to set the tab to “active”? but still not working.