Html code for validating email address

The following example shows how to validate an entered email address.

An email address must contain at least a ‘@’ sign and a dot (.).

The script has a catalog of almost all the common validation types built-in.One of the questions I get asked again and again is how to validate a field value in an Acro Form with a custom validation script.Adobe provided a lot of infrastructure to do that with just a simple script.The following example shows how you can validate an email address for a form.This javascript validation code is cross browser compatible (works for all browsers).Also, the ‘@’ must not be the first character of the email address, and the last dot must at least be one character after the ‘@’ sign.


Leave a Reply