Hi,
i'm trying to make a interactive slideshow with the buttons next, play, pause and previous. But I can not make the next and previous buttons work.
Is there anyone who can help me?
Tanks!
See the Pen %22%3EaqNKbd%3C by JobVoskes (@JobVoskes) on CodePen
It's not really good idea to just copy paste code in codepen when asking for help on forum. For example, you have posted images which are not present, the next and previous buttons are labeled as test1, test2 and most importantly your slider wasn't even visible to see what and if anything is happening.
Anyway,
nothing was working because you copied exact same code for next button and renamed it for previous button and click event was created on wrong id.
I fixed that and