Problem with lesson 6. Next dot 1


#1

I can not get next lesson, because next message error:

Oops, try again. Remember to remove '.active-dot' from the current dot.

Below the code:

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);

Thks.


#2

Hi Miguel,

You need a dot (.) before arrow-next on line 7 :)