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

code challenge: including jquery in our project 5/5

I'm not really getting jquery at all. I have tried everything and still am not getting it! Can anyone shed some light on what I'm doing wrong? The question is: Within the anonymous function write the code to remove the element that’s clicked from the document. This returns the answer: Bummer! null

$("#message").hide().show("slow"); $(".removable").click( function(){(this).remove();});

3 Answers

OK, never mind. I started over and worked through it really slowly and managed to find my mistake - one little $ sign before (this)!

Jquery makes me want to bang my head against the table!!

Hey hi i got problem in the same query

<script type="text/javascript"> $("#message").hide().show("slow"); $(".removable").next().click(function (){ $(this).remove(); }); I am getting this error...what does it mean. Bummer! In the click handler select 'this' and then call the 'remove() method.

I find myself in the same situation. Got to grips with HTML and CSS really quickly and enjoying it. Started jquery and I suck at it. My advice is to do Jim's intro to programming, JavaScript lessons and then do the php lessons. The similarities between the languages are clear and the php teachings are helping me understand jquery.

Cheryl Jones, I got stuck on the $ too! Thank you!