I'm new to jQuery and was wondering how to use it to validate email addresses.
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
Another simple and complete option:
A simplified one I've just made, does what I need it to. Have limited it to just alphanumeric, period, underscore and @.
Made with help from others
jQuery Function to Validate Email
I really don’t like to use plugins, especially when my form only has one field that needs to be validated. I use this function and call it whenever I need to validate an email form field.
and now to use this
Cheers!
this was provided by user Luca Filosofi in this answer this answer
This performs a more thorough validation, for example it checks against successive dots in the username such as john..doe@example.com
See validate email address using regular expression in JavaScript.