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
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
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');
>
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
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
5 matches
Mail list logo