I'm doing it like this ;)
var slider = $("#slider-wrapper")
.carousel({
interval: 4000
})
.bind('slid', function() {
var index = $(this).find(".active").index();
$(this).find("a").removeClass('pager-
active').eq(index).addClass('pager-active');
});
$("#slider-wrapper a").click(function(e){
var index = $(this).index();
slider.carousel(index);
e.preventDefault();
});
On 10 avr, 08:14, Angad Mathur <[email protected]> wrote:
> Has anyone been able to get the carousel to have pagination?
> ive tried adding scrollspy and spied on the carousel, which didnt work.
> also, i used the bootstrap pagination code and tried that way, but cant
> figure out how to link the pages to the slides in the carousel.