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
A very simple solution is to use html5 validation:
http://jsfiddle.net/du676/56/
Refernce : JQUERY UI WEBSITE
This regexp prevents duplicate domain names like abc@abc.com.com.com.com, it will allow only domain two time like abc@abc.co.in. It also does not allow statring from number like 123abc@abc.com
All The Best !!!!!
As mentioned above, this one is good enough if you ask me.
But if you don't want the domain ending (.com, .nu, .net etc) to contain numbers (which is my prefered choice) the edited version would be :
Validate email while typing, with button state handling.