Use the valid method for that: http://docs.jquery.com/Plugins/Validation/valid

$("#A").change(function() {
       $("#B").valid();
});

Jörn

On Tue, Jun 24, 2008 at 4:34 AM, zhudp.cn <[EMAIL PROTECTED]> wrote:
>
> There is a question: If the A field is changed, how to call the
> validate method of B field?
>
>    In my form, there are A and B fields, I have to call B's remote
> method, when one of A and B have changed,
>
>    coding:
>        $(myForm).validate({
>                rules: {
>                        B: {
>                                remote: function(){
>                                        return 
> "/validateABExist.do?A="+$("#A").val()
>                        }
>                messages: {
>                        B: {
>                                remote: "the combination of A and B is existed"
>                        }
>                }
>        })
>
>        $("#A").change(function() {
>                //TODO: How to call B's remote method?
>
>        });
>

Reply via email to