title: Bootstrap : Slider not working
body: <p>i am using <a href="http://bootsnipp.com/snippets/featured/colourful-tabbed-slider-carousel" rel="nofollow">this</a> tabbed slider. Please visit link to see it in action. this is my CODE </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function() {
    $('#myCarousel').carousel({
      interval: 4000
    });
  
    var clickEvent = false;
  
    $('#myCarousel').on('click', '.nav a', function() {
      clickEvent = true;
      $('.nav li').removeClass('active');
      $(this).parent().addClass('active');
    });
  
    $('#myCarousel').bind('slid', function() {
      // Get currently selected item
      var item = $('#myCarousel .carousel-inner .item.active');
  
      // Deactivate all nav links
      $('#myCarousel .nav li').removeClass('active');
  
      // Index is 1-based, use this to activate the nav link based on slide
      var index = item.index() + 1;
      $('#myCarousel .nav li:nth-child(' + index + ')').addClass('active');
    });
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#myCarousel .nav a small {
    display: block;
  }
  #myCarousel .nav {
    background: #eee;
  }
  .nav-justified &gt; li &gt; a {
    border-radius: 0px;
  }
  .nav-pills&gt;li[data-slide-to="0"].active a {
    background-color: #16a085;
  }
  .nav-pills&gt;li[data-slide-to="1"].active a {
    background-color: #e67e22;
  }
  .nav-pills&gt;li[data-slide-to="2"].active a {
    background-color: #2980b9;
  }
  .nav-pills&gt;li[data-slide-to="3"].active a {
    background-color: #8e44ad;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet"/&gt;
  
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  &lt;div class="container"&gt;
    &lt;div id="myCarousel" class="carousel slide" data-ride="carousel"&gt;
      &lt;!-- Wrapper for slides --&gt;
      &lt;div class="carousel-inner"&gt;
        &lt;div class="item active"&gt;
          &lt;img src="http://placehold.it/1200x400/16a085/ffffff&amp;text=About Us"&gt;
          &lt;div class="carousel-caption"&gt;
            &lt;h3&gt;Headline&lt;/h3&gt;
            &lt;p&gt;
              Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr.&lt;/p&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;!-- End Item --&gt;
        &lt;div class="item"&gt;
          &lt;img src="http://placehold.it/1200x400/e67e22/ffffff&amp;text=Projects"&gt;
          &lt;div class="carousel-caption"&gt;
            &lt;h3&gt;Headline&lt;/h3&gt;
            &lt;p&gt;
              Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr.&lt;/p&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;!-- End Item --&gt;
        &lt;div class="item"&gt;
          &lt;img src="http://placehold.it/1200x400/2980b9/ffffff&amp;text=Portfolio"&gt;
          &lt;div class="carousel-caption"&gt;
            &lt;h3&gt;Headline&lt;/h3&gt;
            &lt;p&gt;
              Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr.&lt;/p&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;!-- End Item --&gt;
        &lt;div class="item"&gt;
          &lt;img src="http://placehold.it/1200x400/8e44ad/ffffff&amp;text=Services"&gt;
          &lt;div class="carousel-caption"&gt;
            &lt;h3&gt;Headline&lt;/h3&gt;
            &lt;p&gt;
              Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. Lorem ipsum dolor sit amet, consetetur sadipscing elitr.&lt;/p&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;!-- End Item --&gt;
      &lt;/div&gt;
      &lt;!-- End Carousel Inner --&gt;
      &lt;ul class="nav nav-pills nav-justified"&gt;
        &lt;li data-target="#myCarousel" data-slide-to="0" class="active"&gt;&lt;a href="#"&gt;About&lt;small&gt;Lorem ipsum dolor sit&lt;/small&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li data-target="#myCarousel" data-slide-to="1"&gt;&lt;a href="#"&gt;Projects&lt;small&gt;Lorem ipsum dolor sit&lt;/small&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li data-target="#myCarousel" data-slide-to="2"&gt;&lt;a href="#"&gt;Portfolio&lt;small&gt;Lorem ipsum dolor sit&lt;/small&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li data-target="#myCarousel" data-slide-to="3"&gt;&lt;a href="#"&gt;Services&lt;small&gt;Lorem ipsum dolor sit&lt;/small&gt;&lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
    &lt;!-- End Carousel --&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>jQuery files that i've included </p>
  
  <pre><code> &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.1/js/bootstrap.min.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>problem is that along with my slider active tab does not change. <code>First tab is always active</code> and top slider keeps on changing. Please if someone can help me with it </p>