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

Troubles with jquery Challenge task

Select all inputs and on the 'keydown' event select 'this' and then show the next element.

$(".hint").hide();
$("input").keydown(function()
               {
                 $('this').next().show();
               });

it doesnΒ΄t work. and i don't know what wrong? and this is link to a Challenge task http://teamtreehouse.com/library/build-an-interactive-website/form-validation-and-manipulation/text-input-events

5 Answers

You do not put $(this) in quotes. (Edited this answer for correct terminology).

I had put this in quotes, too. Instead this is in parenthesis, but not in quotes. $(this)

My apologies. Parenthesis : good. Quotes : bad. I meant quotes.

I understood what you meant, but also know how confused I have been on some of these challenges. I was just clarifying. Cheers!

I'm glad you did! That could have been easily confusing to somebody. Thanks for catching that! :)

I got it. thank you for every one.