[jQuery] Re: jQuery validation and error messages

2009-10-21 Thread Bi Jing
Its depending on your requirement, normally it should on onblur event. On Thu, Oct 22, 2009 at 10:27 AM, talasan.nichol...@gmail.com < talasan.nichol...@gmail.com> wrote: > > Is this on submit or live? I don't see how I'd use that. > > On Oct 20, 10:41 pm, Bi Jing wrote: > > You can set id attri

[jQuery] Re: jQuery validation and error messages

2009-10-21 Thread talasan.nichol...@gmail.com
Err. This was directed towards the if and else JS. I'm already using the jQuery validator; and I've been through the docs and can't find anything that would really do what I want it to. The label will change, but I also need another element to change [the fields description] So the example woul

[jQuery] Re: jQuery validation and error messages

2009-10-21 Thread talasan.nichol...@gmail.com
Is this on submit or live? I don't see how I'd use that. On Oct 20, 10:41 pm, Bi Jing wrote: > You can set id attribute of element, e.g. username_desc > And then using following script, > if(success){ > $("#username_desc").html('default msg');}else{ > > $("#username_desc").html('error msg'); >

[jQuery] Re: jQuery validation and error messages

2009-10-21 Thread jonem
This works for me. http://bassistance.de/jquery-plugins/jquery-plugin-validation/ Vary simple if you take the time to read docs. /jon On Oct 21, 5:41 am, Bi Jing wrote: > You can set id attribute of element, e.g. username_desc > And then using following script, > if(success){ > $("#username_d

[jQuery] Re: jQuery validation and error messages

2009-10-20 Thread Bi Jing
You can set id attribute of element, e.g. username_desc And then using following script, if(success){ $("#username_desc").html('default msg'); }else{ $("#username_desc").html('error msg'); } Or you can add a new used to show error message, toggle it between default on your validation result. B