5. Next Slide 2


#1

Hello,

I'd be grateful for any advice as to what's amiss with my code below. I've checked against the code shown in the Hint, but can't see any differences.

Thanks

var main = function() {
$('.dropdown-toggle').click(function() {
$('.dropdown-menu').toggle();
});
$('.arrow-next').click(function() {
var currentSlide = $('.active-slide');
var nextSlide = currentSlide.next();

    if(nextSlide.length == 0) {
        nextSlide = $('.slide').first();
    }

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

};

$(document).ready(main);


#2

you misspelled your last 'active-slide' with 'active-Slide' with a capital S.