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 trialLewis Marshall
22,673 Points405 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?
5 Answers
Rob R
14,637 PointsYour 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!
John Barhorst
9,648 PointsI 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
Courses Plus Student 5,244 PointsLewis Marshall my submit button clears the form. Does anyone have any suggestions as to whether that is good or bad?
James N
17,864 PointsThat'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
4,019 PointsMuch appreciated Rob R, it worked.
re22ui
4,741 Pointsre22ui
4,741 PointsThank you. This helped me.