Can anyone find my error on previous slide 2


#1
  $('.arrow-prev').click(function(){
    var currentSlide= $('.active-slide');
    var prevSlide = currentSlide.prev();
    
    if(prevSlide.lenght=== 0)
    {
    prevSlide = $('.slide').last();
    }
    
    currentSlide.fadeOut(600).removeClass('active-slide');
    prevSlide.fadeIn(600).addClass('active-slide');
    });

#2
have a close look at

lenght


#3

A post was split to a new topic: It doesn't work i dont know why


#4

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.