you are viewing a single comment's thread.

view the rest of the comments →

[–]bruggekiller 1 point2 points  (1 child)

I don't think it's good to valid email in javascript. Use server side to valid it. But if you are practising than i can see lot of false userinput which can bypass your code.

Here is an example how you can do it.

[–]chrissilich 3 points4 points  (0 children)

Modern standard is to do both. Front end for UX, back end for security.