Ping Single Column Coming Soon Page - HTML, CSS & JS
Design comparison
Solution retrospective
1 - How do I make the form validation in JS much better ?
Community feedback
- @yagnik0Posted 9 months ago
Hey there @udayagupta, Congratulation for completing this project design 🚀
I've seen you've asked for how to make the form validation in it, There are few things which is missing in your code :-
-
You've to use preventdefault() method in it so that you can stop the form to be get submitted
-
You need to use regx expression for email validation ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$
Or you can see my submission for reference hope it helps you.😊
Happy Coding! 🫡
Marked as helpful1@udayaguptaPosted 9 months ago@yagnik0 Thank you for your reply!
I will try to make the necessary changes and if further I need help I will refer to your solution. 😁
1 -
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