Error excercise 6 (next dot 1)


#1

Hi!

I keep getting an error saying "Oops, try again. Remember to remove '.active-dot' from the current dot'" when trying to save and submit my code. However, my code (see below) looks exactly the same as in the hint.

Can one of you identify the mistake?
Thanks in advance!

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

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

    var currentDot = $('.active-dot');
    var nextDot = currentDot.next();

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

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

    currentDot.removeClass('active-dot');
    nextDot.addClass('active-dot'); 
});

};

$(document).ready(main);


#2

@mandysteenbergen,

Please read
= http://discuss.codecademy.com/t/next-dot-1/15268/2?u=leonhard_wettengmx_n