BHARAT• 290
@nicobreins
Posted
In HTML5 input type='email' by default show error if email is not formatted correctly. You don't need to use JS.
0
BHARAT• 290
@nicobreins
Posted
Though if you want to show custom error message with custom style use regex to validate email.
See solution here: https://stackoverflow.com/questions/60272725/email-validation-using-javascript-with-a-custom-message-below-the-input-field
0