Hello,
I am trying to validate a year range in a numeric text box in a grid. I am able to validate one end of the range, but not the other. For example, this works:
validation: { custom:
function (input) {
input.attr("data-custom-msg", "Year out of range");
return input.val() >= 1970;
}
}
but when i try this:
validation: { custom:
function (input) {
input.attr("data-custom-msg", "Year out of range");
return input.val() >= 1970 || input.val() <= 2050;
}
}
it will not catch either end of the range. Is there a way to validate a range of numbers?
Thanks