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

Joshua Miller
Joshua Miller
7,824 Points

This is so confusing

Does anyone else find this extremely confusing? I wasn't able to get one of the jquery programs to work fully despite hours of comparing my code to his. Yet I was able to do the challenges.

2 Answers

Michelle Cannito
Michelle Cannito
8,992 Points

It is difficult to answer such a vague question. What specifically isn't working? Tell what the code is supposed to do, paste your code in, and paste the error messages in. Use Markdown language to paste code-- it is 3 backward tick marks (same key as the ~), a line break (hit the return/enter key), the paste, a line break, and 3 more `s.

Joshua Miller
Joshua Miller
7,824 Points
//When add color is pressed
$("#addNewColor").click(function(){
  //Append the color to the cotrols ul
  var $newColor = $("<li></li>");
  $newColor.css("background-color", $("#newColor").css("background-color"));
  $(".controls ul").append($newColor);
  //Select the new color  
  $newColor.click();
}):

This is for the last jquery project you do with him. And i guess I didn't really have a question, I'm just getting frustrated.

Andrew Chalkley
Andrew Chalkley
Treehouse Guest Teacher

You have a colon at the end of your click function...at the end. Not a semi-colon.