Recreating the same situation:
$(document).on('click','.navbar-nav li a',function(){
var tab = $(this).data('tab');
$('.'+tab).trigger('click');
console.log(tab);
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row">
<div class="col-md-12">
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Tabs</a>
</div>
<ul class="nav navbar-nav">
<li><a class="active" data-tab="tab1" href="#">Tab 1</a></li>
<li><a href="#" data-tab="tab2">Tab 2</a></li>
<li><a href="#" data-tab="tab3">Tab 3</a></li>
</ul>
</div>
</nav>
</div>
<div class="col-md-12">
<ul class="nav nav-tabs">
<li class="active tab1"><a data-toggle="tab" href="#tab1">Tab 1</a></li>
<li><a data-toggle="tab" href="#tab2" class="tab2">Tab 2 1</a></li>
<li><a data-toggle="tab" href="#tab3" class="tab3">Tab 3 2</a></li>
</ul>
<div class="tab-content">
<div id="tab1" class="tab-pane fade in active">
tab 1
</div>
<div id="tab2" class="tab-pane fade">
tab 2
</div>
<div id="tab3" class="tab-pane fade">
tab 3
</div>
</div>
</div>
</div>
See that a data-attr
has been added with the tab to navbar
containing which tabs
must be clicked, after capturing the value, trigera click
in browser tab
with classname
in question.
NOTE: console.log()
is left for you to see the tab indicated in the example, it is not necessary in the final product.