@udayagupta
Submitted
1 - How do I make the form validation in JS much better ?
@yagnik0
@udayagupta
Submitted
1 - How do I make the form validation in JS much better ?
@yagnik0
Posted
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