5/12 Doesnt work


#1

I cant find the mistake on this one, even using the Hint and using the same code they show in there it just doesnt work. Can anyone help me on that one?

My code stands like this so far:

var main = function () {
$('.dropdown-toggle').click(function () {
$('.dropdown-menu').toggle();
});

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


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

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

});

}

$(document).ready(main);


#2

Hi Paula,

You misspelled length on line 11 :)