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

Quillor Studio
Quillor Studio
7,658 Points

Jquery select feature not working.

Hi,

Project: I created the first steps of the drawing app challenge: http://teamtreehouse.com/library/jquery-basics/creating-a-simple-drawing-application/preparation

Here is what I have so far: http://quillor.com/treehouse/drawingapp/v1/

Problem: When I add a new color, I cannot select it. I am only able to select the original colors. Anyone know why?

Here's my js file: http://quillor.com/treehouse/drawingapp/v1/js/app.js

(I started the challenge from scratch on my own to test myself, so my code doesn't really follow the project video. It might not be conventional or DRY.)

Thanks!

2 Answers

in this section://Select Color on click instead of

$buckets.click(selectColor)

try

$('addme').on('click','li', selectColor);
Quillor Studio
Quillor Studio
7,658 Points

Hi Maksim Borodin !

Thanks for your help. I tried your suggestion here: http://quillor.com/treehouse/drawingapp/v2 but unfortunetly it doesn't work.

any other tips?