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 trialCarl Conroy
8,677 PointsConfirmation 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.
1 Answer
Richard Clark
5,735 PointsHi 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
8,677 PointsCarl Conroy
8,677 PointsThanks Rick! always good to have an extra set of eyes to catch stuff like that.
Much appreciated.
James N
17,864 PointsJames N
17,864 Pointsi messed up this same way, but on the password field. thanks for the help!