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

JavaScript

Task three of three in the intro code challenge

$(".error").show(); $("a").before("<span>This is a link: </span>"); This is the problem code. '?" Add a click listner with no code to every link . $("a").click("function({})");

I'm also stuck on this question

did you figure it out yet?I am stuck.

3 Answers

The response I get is that I am not passing $("a") into the function. When I put that in the braces it came back and reads 'null'?

The response I get is that I am not passing $("a") into the function. When I put that in the braces it came back and reads 'null'?

I don't understand a thing at what you're saying. Anyway you put your "function" between quotes so it evaluates to a string where it expects a function.