Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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!