Next Dot 2


I do not see the error in this code. Please help me out here!

 var main = function() {
    $('.dropdown-toggle').click(function() {
    $('.arrow-next').click(function() {
        var currentSlide = $('.active-slide');
        var nextSlide =;
        var currentDot = $('.active-dot');
        var nextDot =;
        if(nextSlide.length == 0) {
        nextSlide = $('.slide').first();
        nextDot = $('.dot').first();


This is the error I am getting with your code:

When on the last slide, it looks like next arrow isn't wrapping back
to the first dot. Look back at the instructions and check the code
inside the if statement.

I replaced this line and solved the problem:


Notice the spelling?


Thank you! Man oh man I stared at this code for like 1hr and I'm just
retyping and did the rest of that exercise with no problem. Then I'd come
back to it. Thank you again, I'll check harder next time for misspelled


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