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.

Reply via email to