I have the following situation
<div class="container">
<div class="row">
<div class="col-md-1">
</div>
<div class="col-md-10">
</div>
</div>
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#1">1</a></li>
<li><a data-toggle="tab" href="#2">2</a></li>
<li><a data-toggle="tab" href="#3">3</a></li>
</ul>
<div class="tab-content">
<div id="1" class="tab-pane tab tab-label fade in active">
<button>1</button>
</div>
<div id="2" class="tab-pane fade">
<button>2</button>
</div>
<div id="3" class="tab-pane fade">
<button>3</button>
</div>
</div>
</div>
<div class="row">
<center><button name="qual_tab">Qual TAB esta selecionada</button></center>
</div>
I would like to press the "QUAL_TAB" button and know which TAB is active. I have no idea how to proceed.
Place on button click of something HTML ??? Put on the button click something of javascript ??? Or another procedure I do not see at the moment ??