Next dot 2


#1

{
    $('.dropdown-toggle').click(function(){
        $('.dropdown-menu').toggle();
        })
    
    $('.arrow-next').click(function(){
        var currentSlide = $('.active-slide');
        var nextSlide = currentSlide.next();
        if (nextSlide.length == 0) {
       nextSlide = $('.slide').first();
       nextDot = $('.dot').first();}
        $(currentSlide).fadeOut(600).removeClass('active-slide');
        $(nextSlide).fadeIn(600).addClass('active-slide');
        var currentDot = $('.active-dot');
        var nextDot = currentDot.next()
        $(currentDot).removeClass('active-dot')
        $(nextDot).addClass('active-dot')
        })
    
    }

#2

You're missing a bunch of semi-colons, I'll let you work out where they are. Hint: They're towards the end of the script.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.