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.
Carl Conroy8,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.
That link should take you to a workspace snapshot.
Richard Clark5,735 Points
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.