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
YAAQOUB KEDDAOUI
8,408 Pointsproblem with the ''down" button in the Lavender element
When the Lavender element gets to the top of the list, clicking the down button doesn't move it down again. I tried the instructor's code and the issue persists again. Where is the problem please ?
Go here and launch the Workspace :
https://teamtreehouse.com/library/solution-using-nextelementsibling
or check out the snapshot
Regards
YAAQOUB KEDDAOUI
1 Answer
Steven Parker
243,656 PointsThe "down" button for lavender needs to have the class down.
The event handlers use the class of the target to determine what function to perform. All of the buttons have either the class up or the class down except for the one that is not working. It seems to have an id instead of a class.
YAAQOUB KEDDAOUI
8,408 PointsSOLVED
Thanks a lot
Steven Parker
243,656 PointsSteven Parker
243,656 PointsTo enable us to make an analysis, please show your code and include a link to the course page you were working with.
If there's a lot of code involved, you may want to make a snapshot of your workspace and post the link to it here.