title: Bootstrap vertical tabs not auto changing
body: <p>I have two seperate tab boxes that change when clicked or over a 5 second periode.</p>
  
  <p><a href="https://i.stack.imgur.com/Ujz9H.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ujz9H.jpg" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/sFc1K.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sFc1K.jpg" alt="enter image description here"></a></p>
  
  <p>The box on the left is working perfectly. However, the box on the right is changing the active but not the content.</p>
  
  <p>Here is the html:
  Box on the left:</p>
  
  <pre><code>&lt;div class="media"&gt;
                          &lt;div class="parrent pull-left"&gt;
                              &lt;ul class="nav nav-tabs nav-stacked"&gt;
                                  &lt;li class=""&gt;&lt;a href="#tab1" data-toggle="tab" class="analistic-01"&gt;Architect&lt;/a&gt;&lt;/li&gt;
                                  &lt;li class=""&gt;&lt;a href="#tab2" data-toggle="tab" class="analistic-03"&gt;AIA&lt;/a&gt;&lt;/li&gt;
                                  &lt;li class=""&gt;&lt;a href="#tab3" data-toggle="tab" class="tehnical"&gt;IRS &lt;/a&gt;&lt;/li&gt;
                                  &lt;li class=""&gt;&lt;a href="#tab4" data-toggle="tab" class="tehnical"&gt;AKIN GUMP&lt;/a&gt;&lt;/li&gt;
                                  &lt;li class=""&gt;&lt;a href="#tab5" data-toggle="tab" class="tehnical"&gt;PWC&lt;/a&gt;&lt;/li&gt;
                                  &lt;li class=""&gt;&lt;a href="#tab6" data-toggle="tab" class="tehnical"&gt;EPA&lt;/a&gt;&lt;/li&gt;
                              &lt;/ul&gt;
                          &lt;/div&gt;
  
                          &lt;div class="parrent media-body"&gt;
                              &lt;div class="tab-content"&gt;
                                  &lt;div class="tab-pane fade" id="tab1"&gt;
                                      &lt;div class="media"&gt;
                                          &lt;div class="pull-left boxImg"&gt;
                                              &lt;a href="http://www.architectmagazine.com/awards/r-d-awards/award-green-zip-tape_o"&gt;&lt;img class="img-responsive" src="images/Awards/R&amp;D.png"&gt;&lt;/a&gt;
                                              &lt;a href="http://www.architectmagazine.com/awards/r-d-awards/award-green-zip-tape_o"&gt;Click for Award&lt;/a&gt;
                                          &lt;/div&gt;
                                          &lt;div class="media-body"&gt;
                                              &lt;h2&gt;Architect Magazine&lt;/h2&gt;
                                              &lt;p&gt;It’s hard to get simpler in conception and execution than Green-Zip Tape. The product is a substitute for the joint-compound tape that has been used between gypsum board panels since the introduction of prefabricated plasterboard in the early 1930s. The product impressed all three jurors.&lt;/p&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
  
                                  &lt;div class="tab-pane fade" id="tab2"&gt;
                                      &lt;div class="media"&gt;
                                          &lt;div class="pull-left boxImg"&gt;
                                              &lt;a href="http://info.aia.org/aiarchitect/thisweek07/1005/1005n_epa.htm"&gt;&lt;img class="img-responsive" src="images/Awards/AIA.png"&gt;&lt;/a&gt;
                                              &lt;a href="http://info.aia.org/aiarchitect/thisweek07/1005/1005n_epa.htm"&gt;Click for Award&lt;/a&gt;
                                          &lt;/div&gt;
                                          &lt;div class="media-body"&gt;
                                              &lt;h2&gt;AIA Awards&lt;/h2&gt;
                                              &lt;p&gt;This patented demountable tape provides an alternative method for hanging sheetrock for future de-construction and reuse. 
                                              &lt;/p&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
  
                                  &lt;div class="tab-pane fade" id="tab3"&gt;
                                      &lt;div class="media"&gt;
                                          &lt;div class="pull-left boxImg"&gt;
                                              &lt;a href="https://www.irs.gov/pub/irs-wd/1404001.pdf"&gt;&lt;img class="img-responsive" src="images/Awards/IRS.png" style="margin-top:-30px;"&gt;&lt;/a&gt;
                                              &lt;a href="https://www.irs.gov/pub/irs-wd/1404001.pdf" style="margin-left: 20px;"&gt;Click for PLR&lt;/a&gt;
                                          &lt;/div&gt;
                                          &lt;div class="media-body"&gt;
                                              &lt;h2&gt;IRS PLR&lt;/h2&gt;
                                              &lt;p&gt;Taxpayer's Zip type partitions installed within the Owned Property and Leased Property are included in asset class 57.0 of Rev. Proc. 87-56 for purposes of § 168.
                                              &lt;/p&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
  
                                  &lt;div class="tab-pane fade" id="tab4"&gt;
                                      &lt;div class="media"&gt;
                                          &lt;div class="pull-left boxImg"&gt;
                                              &lt;a href="https://www.akingump.com/en/news-insights/david-burton-examines-irs-private-letter-ruling-on-drywall.html"&gt;&lt;img class="img-responsive" src="images/Awards/AkinGump.png"&gt;&lt;/a&gt;
                                              &lt;a href="https://www.akingump.com/en/news-insights/david-burton-examines-irs-private-letter-ruling-on-drywall.html"&gt;Click for Article&lt;/a&gt;
                                          &lt;/div&gt;
                                          &lt;div class="media-body"&gt;
                                              &lt;h2&gt;Akin Gump Article&lt;/h2&gt;
                                              &lt;p style="font-size: 12px;"&gt;The article analyzes an IRS ruling that says that zip system drywall is eligible for more favorable depreciation than conventional system drywall, despite the fact that each serves the same purpose and has a comparable cost. Burton also looks at the opportunities this creates for real estate developers and the implications for certain nontraditional real estate investment trusts.
                                              &lt;/p&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
  
                                  &lt;div class="tab-pane fade" id="tab5"&gt;
                                      &lt;div class="media"&gt;
                                          &lt;div class="pull-left boxImg"&gt;
                                              &lt;a href="http://www.pwc.com/us/en/tax-accounting-services/newsletters/accounting-methods/new-rulings-provide-guidance-tax-accounting-method-issues.html"&gt;&lt;img class="img-responsive" src="images/Awards/PWC.png"&gt;&lt;/a&gt;
                                              &lt;a href="http://www.pwc.com/us/en/tax-accounting-services/newsletters/accounting-methods/new-rulings-provide-guidance-tax-accounting-method-issues.html"&gt;Click for Article&lt;/a&gt;
                                          &lt;/div&gt;
                                          &lt;div class="media-body"&gt;
                                              &lt;h2&gt;PWC Article&lt;/h2&gt;
                                              &lt;p style="font-size: 12px;"&gt;IRS rules on the depreciation classification of certain interior, non-load bearing partitions
                                              The IRS, in PLR 201404001, ruled that zip-type partitions installed within owned and leased property must be included in asset class 57.0 of Rev. Proc. 87-56 under Section 168, and that conventional drywall partitions are classified as non-residential real property under Section 168(e)(2)(B). 
  
                                              &lt;/p&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
  
                                  &lt;div class="tab-pane fade" id="tab6"&gt;
                                      &lt;div class="media"&gt;
                                          &lt;div class="pull-left boxImg"&gt;
                                              &lt;a href="http://www3.epa.gov/region9/waste/solid/construction/lifecyclebuilding/#win"&gt;&lt;img class="img-responsive" src="images/Awards/US.png" style="margin-top: -30px;"&gt;&lt;/a&gt;
                                              &lt;a href="http://www3.epa.gov/region9/waste/solid/construction/lifecyclebuilding/#win"&gt;Click for Award&lt;/a&gt;
                                          &lt;/div&gt;
                                          &lt;div class="media-body"&gt;
                                              &lt;h2&gt;EPA Awards&lt;/h2&gt;
                                              &lt;p&gt;Winner: Green-Zip-TapeTM Demountable Tape Drywall tape attachment system to support easy deconstruction and reuse
                                              &lt;/p&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;!--/.tab-content--&gt;
                          &lt;/div&gt;
                          &lt;!--/.media-body--&gt;
                      &lt;/div&gt;
                      &lt;!--/.media--&gt;
  </code></pre>
  
  <p>Box on the right:</p>
  
  <pre><code>&lt;div class="media"&gt;
                          &lt;div class="parrent pull-left"&gt;
                              &lt;ul class="nav nav-tabs nav-stacked nav-two"&gt;
                                  &lt;li class=""&gt;&lt;a href="#set1" data-toggle="tab" class="analistic-01"&gt;Marek&lt;/a&gt;&lt;/li&gt;
                                  &lt;li class=""&gt;&lt;a href="#set2" data-toggle="tab" class="analistic-02"&gt;Ozarks Bank&lt;/a&gt;&lt;/li&gt;
                                  &lt;li class=""&gt;&lt;a href="#set3" data-toggle="tab" class="tehnical"&gt;CBRE &lt;/a&gt;&lt;/li&gt;
                                  &lt;li class=""&gt;&lt;a href="#set4" data-toggle="tab" class="tehnical"&gt;Habitat&lt;/a&gt;&lt;/li&gt;
                                  &lt;li class=""&gt;&lt;a href="#set5" data-toggle="tab" class="tehnical"&gt;Huffman&lt;/a&gt;&lt;/li&gt;
                                  &lt;li class=""&gt;&lt;a href="#set6" data-toggle="tab" class="tehnical"&gt;Holiday&lt;/a&gt;&lt;/li&gt;
                              &lt;/ul&gt;
                          &lt;/div&gt;
  
                          &lt;div class="parrent media-body"&gt;
                              &lt;div class="tab-content"&gt;
                                  &lt;div class="tab-pane fade" id="set1"&gt;
                                      &lt;div class="media"&gt;
                                          &lt;div class="pull-left boxImg"&gt;
                                              &lt;a href="Ref/Marek.pdf"&gt;&lt;img class="img-responsive" src="images/Referals/MarekBrothers.jpg"&gt;&lt;/a&gt;
                                              &lt;a href="Ref/Marek.pdf"&gt;Click for Referance&lt;/a&gt;
                                          &lt;/div&gt;
                                          &lt;div class="media-body"&gt;
                                              &lt;h2&gt;Marek&lt;/h2&gt;
                                              &lt;p&gt;We recently built our new 50,000 SF headquarters building and used the Green-Zip Partition System everywhere.  To me, it’s a simple solution and one that everyone should take advantage of!
                                              &lt;br&gt;
                                              -&lt;b&gt;R. Stan Marek&lt;/b&gt; / Chairman
                                              &lt;/p&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
  
                                  &lt;div class="tab-pane fade" id="set2"&gt;
                                      &lt;div class="media"&gt;
                                          &lt;div class="pull-left boxImg" style="margin-top: 20px;"&gt;
                                              &lt;a href="Ref/Ozarks.pdf"&gt;&lt;img class="img-responsive" src="images/Referals/BankOfTheOzarks.jpg" style="margin-top: 30px;"&gt;&lt;/a&gt;
                                              &lt;a href="Ref/Ozarks.pdf"&gt;Click for Referance&lt;/a&gt;
                                          &lt;/div&gt;
                                          &lt;div class="media-body"&gt;
                                              &lt;h2&gt;Bank Of The Ozarks&lt;/h2&gt;
                                              &lt;p&gt;….we now have a built in mechanism for remodeling that should be less expensive, less time consuming, and most importantly, environmentally friendly. &lt;br&gt;
                                              -&lt;b&gt;Mark D. Ross&lt;/b&gt; / Vice-Chairman &amp; COO
                                              &lt;/p&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
  
                                  &lt;div class="tab-pane fade" id="set3"&gt;
                                      &lt;div class="media"&gt;
                                          &lt;div class="pull-left boxImg"&gt;
                                              &lt;a href="Ref/CBRE.pdf"&gt;&lt;img class="img-responsive" src="images/Referals/CBRE.jpg"&gt;&lt;/a&gt;
                                              &lt;a href="Ref/CBRE.pdf"&gt;Click for Referance&lt;/a&gt;
                                          &lt;/div&gt;
                                          &lt;div class="media-body"&gt;
                                              &lt;h2&gt;CBRE&lt;/h2&gt;
                                              &lt;p&gt;….there is no reason not to consider Green Zip Tape as shorter-life property for any tax payer especially based on the design intent, which was originally based on the reusable concept.
                                              &lt;br&gt;
                                              -&lt;b&gt;Matt Rader&lt;/b&gt; / National Managing Director
                                              &lt;/p&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
  
                                  &lt;div class="tab-pane fade" id="set4"&gt;
                                      &lt;div class="media"&gt;
                                          &lt;div class="pull-left boxImg"&gt;
                                              &lt;a href="Ref/Habitat.pdf"&gt;&lt;img class="img-responsive" src="images/Referals/Habitat.jpg"&gt;&lt;/a&gt;
                                              &lt;a href="Ref/Habitat.pdf"&gt;Click for Referance&lt;/a&gt;
                                          &lt;/div&gt;
                                          &lt;div class="media-body"&gt;
                                              &lt;h2&gt;Habitat for Humanity&lt;/h2&gt;
                                              &lt;p&gt;I am very excited about the opportunity to help others have affordable and decent housing, while also keeping more products that can be reused from piling up in a local landfill.  Now that is a winning combination!
                                              &lt;br&gt;
                                              -&lt;b&gt;Ron Collins&lt;/b&gt; / Vice President of ReStores
                                              &lt;/p&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
  
                                  &lt;div class="tab-pane fade" id="set5"&gt;
                                      &lt;div class="media"&gt;
                                          &lt;div class="pull-left boxImg"&gt;
                                              &lt;a href="Ref/Huffman.pdf"&gt;&lt;img class="img-responsive" src="images/Referals/Huffman.jpg"&gt;&lt;/a&gt;
                                              &lt;a href="Ref/Huffman.pdf"&gt;Click for Referance&lt;/a&gt;
                                          &lt;/div&gt;
                                          &lt;div class="media-body"&gt;
                                              &lt;h2&gt;Huffman Drywall&lt;/h2&gt;
                                              &lt;p&gt;In addition to the sustainable benefits, the financial benefits associated with accelerated depreciation are valuable to me as an owner, and could potentially add to the building’s value in the event of a sale.
                                              &lt;br&gt;
                                              -&lt;b&gt;Brandon Huffman&lt;/b&gt; / President
                                              &lt;/p&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
  
                                  &lt;div class="tab-pane fade" id="set6"&gt;
                                      &lt;div class="media"&gt;
                                          &lt;div class="pull-left boxImg"&gt;
                                              &lt;a href="Ref/Holiday.pdf"&gt;&lt;img class="img-responsive" src="images/Referals/Holiday.jpg"&gt;&lt;/a&gt;
                                              &lt;a href="Ref/Holiday.pdf"&gt;Click for Referance&lt;/a&gt;
                                          &lt;/div&gt;
                                          &lt;div class="media-body"&gt;
                                              &lt;h2&gt;Holiday Inn&lt;/h2&gt;
                                              &lt;p&gt;We found that the system will be acceptable for use in Holiday Inn, Holiday Inn Express hotels, and Staybridge Suites hotels. Congratulations.
                                              &lt;br&gt;
                                              -&lt;b&gt;Scott Bruce&lt;/b&gt;
                                              &lt;/p&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;!--/.tab-content--&gt;
                          &lt;/div&gt;
                          &lt;!--/.media-body--&gt;
                      &lt;/div&gt;
                      &lt;!--/.media--&gt;
  </code></pre>
  
  <p>Here is the javascript:</p>
  
  <pre><code>var cycle = {
    onReady: function() {
      $(".nav-stacked li:first").addClass("active in");
      $("#tab1").addClass("active in");
  
      setInterval(function() {
        var $navStacked = $("li.active");
        var tabContent = $("li.active a").attr("href");
        if ($navStacked.is(".nav-stacked li:last-child")) {
          $navStacked.removeClass("active in");
          $(".nav-stacked li:first").addClass("active in");
          $("div " + tabContent).removeClass("active in");
          $("div#tab1").addClass("active in");
        } else {
          $navStacked.removeClass("active in").next().addClass("active in");
          $("div " + tabContent).removeClass("active in").next().addClass("active in");
        }
      }, 5000);
    }
  };
  $(document).ready(cycle.onReady);
  
  var cycle2 = {
    onReady: function() {
      $(".nav-two li:first").addClass("active in");
      $("#set1").addClass("active in");
  
      setInterval2(function() {
        var $navStacked2 = $("li.active");
        var tabContent2 = $("li.active a").attr("href");
        if ($navStacked2.is(".nav-two li:last-child")) {
          $navStacked2.removeClass("active in");
          $(".nav-two li:first").addClass("active in");
          $("div " + tabContent2).removeClass("active in");
          $("div#set1").addClass("active in");
        } else {
          $navStacked2.removeClass("active in").next().addClass("active in");
          $("div " + tabContent2).removeClass("active in").next().addClass("active in");
        }
      }, 5000);
    }
  };
  $(document).ready(cycle2.onReady);
  </code></pre>
  
  <p>cycle is controlling the left box, cycle2 is supposed to control the right.
  Thanks for your help!</p>
  
  <p>Here is the jsfiddle <a href="https://jsfiddle.net/DTcHh/16660/" rel="nofollow noreferrer">Fiddle</a></p>