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 jQuery Basics (2014) Creating a Simple Drawing Application Perform: Part 2

Alan Sea
Alan Sea
6,781 Points

Color selector not showing and chrome dev tools not showing an error

https://w.trhou.se/tt6kc9fitd

I'm sure my problem is relatively simple, but it's hard to fix when dev tools doesn't give me a single clue. Can anybody spot anything I'm not seeing?

2 Answers

rydavim
rydavim
18,813 Points

A second pair of eyes always helps! It looks like you've got some minor issues with just one line of code.

// Changed single-quotes to double-quotes, added a + after the b, added # before newColor.
$("#newColor").css("background-color", "rgb(" + r + ", " + g + ", " + b + ")"); 

That did it for me, but let me know if you run into trouble. Happy coding! :)