This is my code:

```
<li><a class="section-link" href="#ex"><strong>1</strong></a>
<li><a class="section-link" href="#ex"><strong>2</strong></a>

<section id="ex">
 <ul class="nav nav-tabs">
   <li class="active"><a data-toggle="tab" href="#home">1</a></li>
   <li><a data-toggle="tab" href="#menu1">2</a></li>
 </ul>

 <div class="tab-content">
<div id="home" class="tab-pane fade in active">
some data
</div>

 <div id="menu1" class="tab-pane fade">
some data
</div>

</div>
</section>

```

When clicking the second link,I want the page to scroll to the section "ex" and make the second tab-pane active.