Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   Programming General (http://siteownersforums.com/forumdisplay.php?f=44)
-   -   How to Validate an email address in a form (http://siteownersforums.com/showthread.php?t=161277)

Martinricky 11-18-2015 10:12 PM

How to Validate an email address in a form
 
Hii Guys. .
i want to know that how we validate an email address which user enters in a field in a form.Please Give me the code.

smmexpertss 11-29-2015 10:48 PM

When setting options via HTML attributes, remember to enable the validator by setting data-fv-emailaddress="true".
You don't need to do that when using HTML 5 type="email" attribute.
The message and other options can be updated on the fly via the updateMessage() and updateOption() methods
This validator passes an empty field since the field might be optional. If the field is required, then use the notEmpty validator.

Dubey675 12-11-2015 02:09 AM

Try this






All times are GMT -7. The time now is 04:08 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.