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 Perfect

Lewis Marshall
Lewis Marshall
22,673 Points

405 not allowed page not coming up after submit?

When entering the password and confirm password and then pressing submit the 405 not allowed page wont come up.

Ive checked through the work so many times but I can't find the mistake i've made.

Any help please?

https://w.trhou.se/udkmpxm98l

5 Answers

Rob R
Rob R
14,637 Points

Your code looks fine to me! I think maybe our workspace is set up differently than the teacher's? Even without the jquery, my submit button doesn't go to the 405 page either. Try changing your form action on your index.html to something like "test.html" so it looks like:

          <form action="test.html" method="post">

and try the password and submit again. That way you'll get an error and it's easier to see that your code is working well!

re22ui
re22ui
4,741 Points

Thank you. This helped me.

John Barhorst
John Barhorst
9,648 Points

I had the same issue. Using Chrome on Windows 10. I checked it out in the JS console and using $("#submit") to show the properties whether it's disabled or not appears to check out fine. I'd call it good.

Valerie Smith
PLUS
Valerie Smith
Courses Plus Student 5,244 Points

Lewis Marshall my submit button clears the form. Does anyone have any suggestions as to whether that is good or bad?

James N
James N
17,864 Points

That's completely normal behavior. the browser doesn't cache the inputted text because it assumes you're going to a completely new page.

Faisal Rahimi
Faisal Rahimi
4,019 Points

Much appreciated Rob R, it worked.