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 Password Confirmation Form Perform: Part 2

Carl Conroy
Carl Conroy
8,677 Points

Confirmation hints do not show.

I have completed this code to the point where the password hint and the confirmation hints are both supposed to show/hide themselves depending on focus/keyup events.

It works perfectly with the initial password entry but falls short on the confirmation entry.

Can someone examine my code to see where I make a mistake? I see no errors in the console when running this code so I'm not sure where my error is.

https://w.trhou.se/63671tbfhp

That link should take you to a workspace snapshot.

1 Answer

Richard Clark
Richard Clark
5,735 Points

Hi Carl,

Not been able to test this as I am at work, but it looks to me that you may have missed out the "#" when you defined your $confirmpassword variable.

What you have now:

var $password = $("#password");
var $confirmPassword = $("confirm_password");

What would be consistent:

var $password = $("#password");
var $confirmPassword = $("#confirm_password");

Perhaps that will help.

Rick

Carl Conroy
Carl Conroy
8,677 Points

Thanks Rick! always good to have an extra set of eyes to catch stuff like that.

Much appreciated.

James N
James N
17,864 Points

i messed up this same way, but on the password field. thanks for the help!