Previous slide 2


Okay I was off the sight for awhile but I'm still not sure what I'm doing wrong here,

Here is my code now,

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();

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


I got the error "Oops, try again. Remember to fade in the previous slide and add the 'active-slide' class."

I;m not sure what I need to enter to change the duration in $('arrow-next').



Hi @eragous,

You're closing your main function too early. Move the closing curly brace (}) on line 5 down to just before $(document).ready(main);, and your code should work :slight_smile: