Ping Single Column Coming Soon Page - HTML, CSS & JS

Solution retrospective
1 - How do I make the form validation in JS much better ?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @yagnik0
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 helpful -
Join 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