What did I do wrong in #4 can someone help me?


#1

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 Cfleck22,

addClass(), removeClass(), and toggleClass() don't take a dot (.) in front of the class name. So, the two lines using those should look like this:

Spoiler!

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


#3

thank you sooo much that helped me so much