What is the best way to validate email ? if I checked for '@' and '.' is this enough?
Tek Loon
@tlcheah2All comments
- @GhadeersharkawySubmitted almost 5 years ago@tlcheah2Posted almost 5 years ago
Hi Ghadeer,
You can actually google it out and there is a lot of custom pattern for validating email. However, you can use the default HTML5 email validation by specifying your input type="email".
For e.g,
const inputEmail = document.getElementById('input-email'); const isValidEmail = inputEmail.checkValidity();
That's how I do for email validation.
I am not sure is that what you asked for. I hope it helps.
Thanks
2 - @VincenzoMarcovecchioSubmitted almost 5 years ago
I went back to this challenge and i completed in the best way possible with my knowledge level at the moment, i believe i can do better what do you think?
@tlcheah2Posted almost 5 years agoHi Vincenzo,
Great work. The feedback I have is on the upper form div.
It would be good as well if you can set the padding on left and right as well. This is because when I size down my browser, the text becomes very close to the button border.
Just some minor details. I hope it helps.
Thanks
2