Thank you for your response.
I'm trying the jquery validation plugin and also using post
http://groups.google.com/group/jquery-en/browse_thread/thread/6411a46d271c1ce4#
as a reference, but I still can't make it work.
On Feb 27, 5:34 pm, Gelegrodan <GeleGro...@gmail.com> wrote:
> Use the jquery validation plugin!http://bassistance.de/jquery-plugins/jquery-plugin-validation/
>
> On Feb 27, 9:27 pm, ml2009 <mcl...@systemsview.biz> wrote:
>
>
>
> > I have just started using jQuery and wonder if you could help me
> > please.
>
> > I am working on a form which contains a field to enter multi-email
> > addresses. How could I validate this field using jQuery?
>
> > This is what I would do if I were not using the jQuery library
>
> > function multiEmail(my_emails) {
> > var email = my_emails.split(';');
> > for (var i = 0; i < email.length; i++) {
> > if (!validateEmail(email[i], "Your email is invalid.", 0)) {
> > return false;
> > }
> > }
> > return true;
> > }
> > function validateEmail(email, msg) {....}
>
> > How could I customize the function above to go inside the addMethod
> > below?
>
> > jQuery.validator.addMethod("multiEmail", function(...) {
>
> > }- Hide quoted text -
>
> - Show quoted text -
No comments:
Post a Comment