Slideshow JQuery Error while passing Slide

0

Problem

I have a slideshow where I have to show two div's each time. Until the beginning it gets the two all right, however as soon as it returns to div 1 and 2 in the next 'next' that I give the div 1 is still there and only div 2 changes to div 4 . The div 1 should change to div 3 .

Slideshow template

link

I think

I have reviewed this code several times and I believe that it has the correct logic and I have somehow changed the value of div 1 to a value that can not exist or give .show ().

    
asked by anonymous 11.05.2015 / 15:19

1 answer

1

Line 37

$slideativo1 = $slideshow.find("li.slideatualUltimo").next();

When the code is reset this is set to twice the variable $slideativo1 .

Remove this part that will work.

    
11.05.2015 / 15:56