Cant get lesson 6 Next Dot 1


#1

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 = $('.active-dot').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

Hi Jacob,

What does the error message you're getting say?


#3

The error es:
Oops, try again.
Remember to remove '.active-dot' from the current dot

and the sintaxis is good


#4

Same error for me, can't progress


#5

@miguel_garcia and @erraticrat Please create your own topics in the forum with the error message you're getting and your code. I'll try to help you over there.
There's no need to hijack this topic.