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 trialIvan Burda
10,897 PointsJQuery - Creating a Password Confirmation form - "Perform: Part 2"
In this part of the task Andrew advices to use these two variables to make the code look better: var $password = $("#password"); var $confirmPassword = $("#confirm_password");
However, once I create them and use to replace the relevant parts of the script, the functionality is gone. Not even the hints disappear when the code is loaded.
Please, check here: http://codepen.io/ivanek1986/pen/hgxoE
Where is the catch? I am hopeless here. Thank you.
2 Answers
Nemanja Pribilovic
5,366 Pointsin function confirmPasswordEvent() in if statement you have an extra ) after $password, remove that than you should be good.
Ivan Burda
10,897 PointsNemanja, thank you! I really didnt see this trivial mistake. Much appreciated! :-)
taahrqqhar
14,147 Pointscan you put your final code here? i'm having a lot of problems on this question and have almost 2 weeks stuck in it... I've skipped doing this jquery because of it got me frustrated
Ivan Burda
10,897 PointsHola Joe. Puedes verlo aquí: http://codepen.io/ivanek1986/pen/hgxoE Creo que todo es bien. Si necesitas algo más, envia me un mensaje. Ivan