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
Ryan Swapp
9,743 PointsCode Challenge: Using jQuery to Manipulate Elements and Add Behavior 3/3
I have no idea what this is asking me to do. Add click listener??
3 Answers
Andrew Chalkley
Treehouse Guest TeacherA listener listens for a specific event. So in this case it's asking you to add the jQuery method that listens for the click event.
Here's the jQuery documentation page on Mouse Events.
Renan Freitas
4,142 PointsI was stuck on this for a while, only to realize that the problem was with the syntax. also this whole "listener" thing threw me off, just forget about it and do what you can lear in the video. To solve it, i used "click()" method on the link selector. The argument (AKA handler) of the click() method was an (bloody) "anonymous function" with "no code" in it.
ps: sry if i get the names wrong (method, argument etc)
A. J.
11,266 PointsRyan Swapp I hope you solved it. Otherwise, together with Andrew's and Renan's advice above I can recommend you rewatch the last video before this code challenge. I found it gave me a good idea about the correct syntax to use (the example towards the very end of it) :)