Jacky schrieb:
Hi,

I valiate two fields that depend on each other if blank,for
example,user must supply he/her telephone number or mobile number,he/
her just need input the one of that(telephone number or mobile
number).

I set the rules like this:

rules:{
    telephone:{
        required:"#mobile:blank",
        digits:true
    },
    mobile:{
        required:"#telephone:blank",
        digits:true
    }
}

if input non-digits characters to both of these two fields,digits
validation is not working.
In that case you need to provide a custom method instead of the dependency check. Won't work with circular dependencies otherwise, it may be seen as a bug, but there's nothing I can do about it.

Jörn

Reply via email to