V
V
Vasily Sazhin2015-12-29 16:59:48
Bootstrap
Vasily Sazhin, 2015-12-29 16:59:48

How to activate bootstrap tab with a link?

There are tabs:

<ul id="myTab2" class="nav nav-tabs">
  <li class="active"><a data-toggle="tab" href="#description"> 1 вкладка</a></li>
  <li><a data-toggle="tab" href="#download">2 вкладка</a></li>
  <li><a data-toggle="tab" href="#screenshots">3 вкладка</a></li>
</ul>
<div class="tab-content">
  <div id="description" class="tab-pane fade in active">
 содержимое вкладки 1
  </div>
  <div id="download" class="tab-pane fade">
содержимое вкладки 2 
  </div>
  <div id="screenshots" class="tab-pane fade">
содержимое вкладки 3
  </div>
</div>
<a href="#download">открыть вкладку 2</a>

How to activate tab 2 by clicking on a link (button)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Perin, 2015-12-29
@zachTT

data-toggle="tab"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question