Jcarousel does not activate the Next button

Asked

Viewed 43 times

0

I have a Carousel that is created dynamically with data coming from the database. But when creating dynamically it seems that it does not activate Next. How can I fix this? Follow the codes:


HTML DA PÁGINA


JQUERY:

$('.jcarousel-imagem-produto')
    .jcarousel({
      vertical: true
    });

    $('.jcarousel-control-prev-imagem-produto')
    .on('jcarouselcontrol:active', function() {
      $(this).removeClass('inactive');
    })
    .on('jcarouselcontrol:inactive', function() {
      $(this).addClass('inactive');
    })
    .jcarouselControl({
      target: '-=1'
    });


    $('.jcarousel-control-next-imagem-produto')
    .on('jcarouselcontrol:active', function() {
      $(this).removeClass('inactive');
    })
    .on('jcarouselcontrol:inactive', function() {
      $(this).addClass('inactive');
    })
    .jcarouselControl({
      target: '+=1'
    });

THIS IS WHERE I MAKE THE IMAGE APPEAR: inserir a descrição da imagem aqui

  • You can create the control of forward and back in hand.

  • Is there any example of how I could do that? But up there it no longer creates control? The problem that I referred to is that it works if I put the LI without being created dynamically. If I create them dynamically it simply doesn’t trigger or understand the L'is

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.