2

Fields on the site are validated using JQuery Validate: http://bassistance.de/jquery-plugins/jquery-plugin-validation/

When there's one e-mail, you simply set the class of the element to "required email".

Now, I have a textarea where multiple emails can be entered, separated either by a comma, or a newline.

I am aware of ways of validating multiple emails using regular Javascript, and I will probably have to resort to that. But before I do, I just wanted to double check that JQuery Validate does not allow for such validations out of the box. I've looked through their docs, but I couldn't find a reference to such a feature. Am I correct in this?

djdy
  • 6,779
  • 6
  • 38
  • 62

1 Answers1

1

JQuery validation doesnt allow such option although you can extend plugin to do that . Its already validating email you have to add extra validator and just use validation as they are doing for email/

http://riteshnayak.com/blog/2010/01/05/extending-jquery-validation-plugin-custom-validation/

http://blogs.teamb.com/craigstuntz/2009/01/15/37923/

Pit Digger
  • 9,618
  • 23
  • 78
  • 122
  • For those who stumble across this question and need a real answer: http://stackoverflow.com/a/10352428/324978 – robbrit Jul 11 '13 at 21:04