Hi
I am validating popwindow on button click and the length validation fires even the textbox is blank making it as a requiredfield it should be showing message if user enter characters falling less or more than the range specified
Sometimes the validation gets fired even i am pressing different button which doesnt invoke validator
$(“#btnSearch”).bind(‘click’, function () {
if ($(‘#popupWindow’).jqxValidator(‘validate’))
});
$(‘#popupWindow’).jqxValidator({
rules: [
{ input: ‘#txtName’, message: ‘Name must contain only letters!’, action: ‘keyup’, rule: ‘notNumber’ },
{ input: ‘#txtName’, message: ‘Name must have minimum of 3 characters!’, action: ‘blurr’, rule: ‘length=3,50’ }
]
});
Is there a way to evaluate values of two fields and based on that a validation rule can be set and position the message some place else and not beside the contol