How to create a method that check if an email is valid, if the validator find an ‘@’ sign?
(the input text is either name or email address only).
How to create a method that check if an email is valid, if the
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This will check the e-mailaddress additionally if a valid domain is written.
me@something –> invalid
@something.com –> invalid
me@.com –> invalid
me@something.com –> valid
Regular Expression Library –>
If you want to validate the mail address with jQuery Validation Engine, simply add:
to the input field.
Since Form Validation Engine 1.6.4, there’s the possibility to add your own function for validation: http://www.position-absolute.com/news/form-validation-engine-1-6-4/
You can replace the code in the example with this, then it should work:
JS (To your
<head>):Live demo: http://jsfiddle.net/4dUyX/