Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialCarolyn DeHass
5,434 PointsNext and Previous buttons
How would one use Next and Previous buttons instead of a label for each input?
1 Answer
Steven Parker
231,275 PointsYou could do it with JavaScript, but this particular script-free technique relies on the unique way labels can be associated with buttons, and using hidden buttons to trigger the background changes. If you wanted that feature, you might be better off implementing the whole thing with JavaScript.
The good news is that is a typical feature of the common JavaScript carousels that are readily found online.