Background:
So i’m trying to achieve a content slider. Essentially I have my div with “pages” in it and i’m able to press the next button to go to the next page. If I want to go back I press the previous button right. Simple right? I’ve been trying to use jQuery to get this slide working. It kind of works, but only does one page, so I go from Page One to Page Two, then it won’t work anymore
What I need help with:
I’d love to find someone who could explain to me theoretically how I would get my content slider to work. Also I need someone to explain why my slide won’t work and why it’s such a bad slider. If someone could correct my code to so I can use that as a backup I’d love that!
Playing with it, it seems that the array you were calling :first and :last on is storing the objects in the order that they’re created in the document. This works (I added a fourth div for my tests):