On the form I need to provide the validation where the validation depends on the value of two fields, but I can not seem to get it to work.
$.validator.addMethod("validateTask",function (value, element, params) {
if (($("#ID").val() == 1) && ($("#IDName").val() == 0)) {
return "required";
}
}, 'Enter an individual.');
and the call is
Name:{
validateTask: true
}
From the plugin docs, it appears all you need is a required dependency callback