$.validator.addMethod(
"MyWebserviceValidation"
,
function
(value, element, params) {
var
otherStatus = $.validator.methods["childWebserviceValidation"].call(
this
, value, element,
"true"
); //Ajax synch call
if
(!otherStatus) {$.validator.messages["childWebserviceValidation"] =
this
.customMessage(element.name, "childWebserviceValidation");
return
false
;
}
else
{
//process for this validation and return as per the output
}
}, jQuery.format(
"The fields must be valid "
));