JavaScript email validation

JavaScript email validation: An email is tricky because of its format. Some of the basic checks are as follows: Presence of @ and . character Presence of at least one character before and after the @. Presence of at least two characters after. (dot). Example <!DOCTYPE html> <html lang=”en”> <head> <script> function validateEmail(emailId) { var … Read more