I am using this script to validate an email. The input form sits in a DIV that switches from gray to red to green as the user enters an email. It shows green when a valid email address has been entered and when the validate button has been clicked, it shows if the address is valid or not with either an alert or message.
- If you type in an email address, and then delete it, it still shows a blank form as valid; as does clicking the validate button on an empty field.
It would be great if someone cold 'fork' or update this JSFiddle.
Feel free to use it, the script is mostly done and works pretty nicely.