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 trial
Carlos Arroyo
Front End Web Development Techdegree Graduate 15,431 PointsHow do you make a previous and next buttons work, using JQuery?
I made a lightbox, and in the lightbox I have to add two arrows for previous and next. I can't figure out how to make those two buttons take me to the other pictures. Any help will be welcomed.
2 Answers
Ryan Zimmerman
3,854 PointsAre you looking for the event or the logic?
Jason Anello
Courses Plus Student 94,610 PointsHi Carlos,
I found a few older questions about this that might help you out.
Carlos Arroyo
Front End Web Development Techdegree Graduate 15,431 PointsThat help out a lot. Thank you.
Carlos Arroyo
Front End Web Development Techdegree Graduate 15,431 PointsCarlos Arroyo
Front End Web Development Techdegree Graduate 15,431 PointsI am looking for an event. I have tried to make a function to do it, but it does not work for me. Here is what I have so far.
This is the html.
below is the jquery.
I have build the lightbox. You click on a picture and the lightbox comes out. When it comes out it has the two buttons in question, but I can't seem to make them work. I can use a jquery plugin, but I would rather learn how to do this myself without one. I