title: jQuery - Bootstrap Carousel Slid Event
body: <p>I'm trying to make a simple event handler on my Bootstrap Carousel sliding, and as a test for later if statements, I'm just alerting the current slide, but it keeps returning 0 (My first slide) even though it's sliding from 1 to 2, or 0 to 1 for example, it will always show 0.</p>
  
  <pre><code> var slide = $('#myCarousel .active').index('#myCarousel .item');
     $("#myCarousel").carousel()
     $("#myCarousel").bind("slid", function(){
     alert(slide);
   });
  </code></pre>