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

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.