How To Get Total And Current Slide Number Of Carousel In Bootstrap 3.3.4
Hello guys i want to get current slide number of carousel in bootstrap 3.3.4 i already used this script in below 3 version and work perfectly but in version 3.3.4 not working any o
Solution 1:
Try this one:
$('#myCarousel').on('slide.bs.carousel', function() {
currentIndex = $('div.active').index() + 1;
$('.num').html(''+currentIndex+'/'+totalItems+'');
});
Post a Comment for "How To Get Total And Current Slide Number Of Carousel In Bootstrap 3.3.4"