Next slide 1 exercise - fault with code or fault with site?


#1

Hi all,
I've followed the hint and the code still doesn't pass. After reading the threads I think its the codeacademy site. Anyone have suggestions for how I move on to the next exercise with the correct code? Here's what I have below.

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

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

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

});

});
}

$(document).ready(main);


#2

Hi Sunnyjeans,

You need to close the function you've opened on line 2 before the next one. You can do that by moving line 12 up to line 4 :)


#3

Hi Zystvan. Thank you :smile: