-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
email input type and the multiple attribute #1722
Comments
This seem to be pretty new, never seen it in the wild yet. PR with a patch and unit test welcome. |
hi @ll here my solution, for multiple-emails
i hope it helps |
See also: https://stackoverflow.com/questions/10352221/jquery-validation-plugin-multiple-email-addresses#10352428, so it has existed in the wild for over 5 years now. |
My function is for the HTML5 element input-type = "email" with and without the attribute multiple It verifies by itself whether it is multiple and then makes the right test |
This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automtically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up. |
HTML5 has a multiple attribute that can be specified for e-mail addresses as well as files. For e-mail, it would be a set of comma-separated strings, each of which is a valid email address.
When applying the multiple attribute to the existing jQuery Validation Plugin Demo, more than one e-mail address will not validate.
There are solutions to this (e.g., http://stackoverflow.com/questions/10352221/jquery-validation-plugin-multiple-email-addresses), but ideally, one should be able to write the following without using addMethod:
The text was updated successfully, but these errors were encountered: