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

Ivan Burda
Ivan Burda
10,897 Points

JQuery - 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

in function confirmPasswordEvent() in if statement you have an extra ) after $password, remove that than you should be good.

Ivan Burda
Ivan Burda
10,897 Points

Nemanja, thank you! I really didnt see this trivial mistake. Much appreciated! :-)

can 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
Ivan Burda
10,897 Points

Hola 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