It doesn't work i dont know why


#1

It doesn't work i dont know why....Someone help me please ?:disappointed_relieved:

$('.arrow-prev').click(function(){
var currentSlide= $('.active-slide');
var prevSlide = currentSlide.prev();

if(prevSlide.length === 0)
{
prevSlide = $('.slide').last();
}

currentSlide.fadeOut(600).removeClass('active-slide');
prevSlide.fadeIn(600).addClass('active-slide');
});

}
$(document).ready(main);


Can anyone find my error on previous slide 2
#2

Hi Laye,

Please post your entire code, formatted properly, a link to the exercise you're on, and the error message you're getting so we can help you.


#3

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