Как отображать вкладки с задержкой в jquery?

#javascript #jquery #twitter-bootstrap-3

Вопрос:

Мне нужна функция, которая показывает вкладку, а через 2 секунды показывает следующую. Это мой код, как я могу заставить его работать?

 <div class="tab-content">
     <div id="tab1" class="tab-pane fade in active">
      // here the content
     <button data-toggle="tab" href="#tab2" onclick="showTab3"> NEXT </button>
     </div>

     <div id="tab2" class="tab-pane fade">
      // here the content
     </div>

     <div id="tab3" class="tab-pane fade">
      // here the content
     </div>     
</div>
 
 function showTab3() {
   setTimeout(function(){         
       $('#tab3').tab('show');
   }, 2000);                 
}