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 Build an Interactive Website Form Validation and Manipulation Text Input Events

benjamin perodeau
benjamin perodeau
7,469 Points

weak sauce

This project (interactive website) is far less effective than most of the previous content. There are great bit leaps I'm expected to make and it's not working. Here's what I have for this item:

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

Also tried some variations on this to no avail. Please help. Thanks, Ben

benjamin perodeau
benjamin perodeau
7,469 Points

this doesn't work, either:(

$(".hint").hide();
$("input.keydown").focus(function(){
  $(this).next().fadeIn("slow"); 
});

3 Answers

Craig MacIntyre
Craig MacIntyre
9,943 Points

Try this maybe?

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

You were calling the keydown function as a jQuery object instead of calling it ON the 'inputs' variable

benjamin perodeau
benjamin perodeau
7,469 Points

BOOM! Your answer with input, no 's'.

Thank you!