Sign-up form with Javascript validation and custom styles
Design comparison
Solution retrospective
First time trying out custom validation with Javascript and Sass. Please check it out and leave some feedback.
Also, does Github Pages not allow forms? Because I get a 405 Not Allowed page when I submit the form. Is there any way to just be taken back to the form instead of it being submitted somewhere?
Community feedback
- @sarahc-devPosted over 3 years ago
Hi! When I use your form it just refreshes the page - so not sure if you found a way to fix this. You can also use preventDefault() in the JavaScript where the form submits to prevent the default functionality and not submit the form.
Hope that helps :)
1@syedalimansoorPosted over 3 years ago@sazzledazzle Yesss I read somewhere that Github Pages doesn't allow POST so I change the form's method to GET. Not practical, I know, but also not really the point of this challenge so no problem!
Thanks for the help!
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord