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.

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
218,813 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.