jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
1.99k stars 734 forks source link

Small advice needed #723

Closed mantia11 closed 9 years ago

mantia11 commented 9 years ago

Hi! I looked all over the internet and don't find the answer why this piece of code doesn't work in my global.js for dynamic carousel:

    $('.carousel-wrapper')
       .on('jcarouselcontrol:active', '.jcarousel-control-prev', function () {
           $(this).removeClass('inactive');
       })
       .on('jcarouselcontrol:inactive', '.jcarousel-control-prev', function () {
           $(this).addClass('inactive');
       });
    $('.carousel-wrapper')
        .on('jcarouselcontrol:active', '.jcarousel-control-next', function () {
            $(this).removeClass('inactive');
        })
        .on('jcarouselcontrol:inactive', '.jcarousel-control-next', function () {
            $(this).addClass('inactive');
        });

I'll be very appreciate for answer.

jsor commented 9 years ago

Can you please setup a reproducible test case where i can see your complete setup?