11-18-2015, 11:12 PM | #1 |
Registered User
Join Date: Aug 2015
Posts: 434
|
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.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
11-29-2015, 11:48 PM | #2 |
Registered User
Join Date: Sep 2015
Location: UK
Posts: 447
|
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. |
12-11-2015, 03:09 AM | #3 |
Registered User
Join Date: Jul 2015
Posts: 260
|
Try this
<form> <input type="email" required /> <br /> <input type="submit" value="Submit Now!"> </form>
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UK B2B Email List| Business Email Database| Companies Email List UK | B2B Email List | Web Promotion | 1 | 08-10-2015 05:21 AM |
Ecommerce Email Database - Online Consumer Email List India, USA, UK | B2B Email List | Web Promotion | 0 | 08-09-2015 12:22 PM |
USA B2B Email List - Business Companies Email Database | B2B Email List | Web Promotion | 0 | 08-09-2015 09:51 AM |
[B]Email Marketing Secret[/B] | hassaneodx | The Market | 0 | 07-03-2014 06:43 PM |
Definitive Javascript to hide email address? | ncjbhd | Javascript | 2 | 06-09-2014 05:27 AM |