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 Using siblings(), removeClass() and addClass()

Mohamoud Dandan
Mohamoud Dandan
7,133 Points

On line 8 of app.js, select the neighbors of $(this).

i am sure that i wrote the right code but the challenge task keeps but me down please i need your help TreeHouse please

Steven Parker
Steven Parker
231,275 Points

Did you use the "Get Help" button? It normally includes the code for you. But anyway, please show your code, and remember to use the instructions for code formatting in the Markdown Cheatsheet pop-up below the "Add an Answer" area. :arrow_heading_down:

1 Answer

Tom Oesterman
PLUS
Tom Oesterman
Courses Plus Student 8,889 Points

I was a bit confused by the question too, but then I figured out they were asking. Did you try:

  $(this).siblings();

Hope that helps.