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 jQuery Basics (2014) Creating a Password Confirmation Form Perform: Part 2

Alan Sea
Alan Sea
6,781 Points

The password prompts never disappearโ€ฆ What am I doing wrong?

https://w.trhou.se/ybx77g2nru

As best I can tell, I have followed the code exactly as instructed and the console doesn't show any errors, but any time I load the page in the browser the prompts appear next to the text boxes after the pages loaded, regardless of whether or not I am focused on a particular field. Anybody have any ideas?

1 Answer

Steven Parker
Steven Parker
229,786 Points

On line 9 you attempted to write a comment, but you are missing one slash (/):

app.js
/Find out if password is valid

This invalidates that event handler. You could have seen this error in the browser's JavaScript console.

Also, on line 33, you are missing one of the listeners needed to perform the check: .keyup(passwordEvent);

Alan Sea
Alan Sea
6,781 Points

got it. Thanks! Not sure why it didn't show up in the console when I looked, but it didn't.