Previous dot 2 #11


#1

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

$('.arrow-next').click(function() {

var nextSlide = currentSlide.next();

var currentDot = $();

var nextDot = currentDot.next();


if(nextSlide.length == 0) {
nextSlide = $('.slide').first();
nextDot = $('.dot').first();
});

$('.arrow-prev').click(function() {

var prevSlide = currentSlide.prev();

if(prevSlide.length == 0) {
prevSlide = $('.slide').last();
prevDot = $('.dot').last();
}
$('.dot').last()

});
$(document).ready(main);
this is what i did but it says remove active dot from current dot


#2

@designrockstar29231,

Please read through
= https://www.codecademy.com/forum_questions/5615308ab62548021c0000e4