Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

Having problems getting past AJAX Jquery question on stage 3

When I add the function jquey('#footer').html(); to the code I keep getting error messages. I tried $("#footer").html(); and it tells me this is not correct. Where should I add the method?

2 Answers

Hello Kristen, Thank you for the quick response. I was referring to question three. I was using the ".html()" and I forgot to add the name of the callback to the code. It was a slight over sight on my part. I just figured it out.

var callback = function(response){ $('#footer').html(response) }; $.get('#footer',callback);

sometimes the smallest things can be over looked.

David

Glad you got it figured out!

If you are referring to the first task, I think it's only looking for the selector: $('#footer'). In the second task it will ask you to call the load() method on the selector.