Hello,
We want to Validator Message set on other input field.
{ input: '#birthInput', message: 'Your birth date must be between 1/1/1990 and 1/1/2012.', action: 'valuechanged', rule: function (input, commit) {
var date = $('#birthInput').jqxDateTimeInput('value');
var result = date.getFullYear() < 1990;
if (result) {
$('#testForm').jqxValidator('rules')[2].message = "Date is below 1990";
return false;
}
return true;
}
},{ input: '#other_input', message: 'Your birth date must be between 1/1/1990 and 1/1/2012.', action: 'valuechanged', rule: function (input, commit) {
var validationString=serverAbsenceValidate();
if(validationString!=true){
$('#testForm').jqxValidator('rules')[2].message = validationString;
return false;
}else{
return true;
}
}
We need on other_input value change to set validation on ‘#birthInput’ field.and We have try above like code.But It is not working.
Could you please help us for ?
Thanks
Alpesh