This version of the function appears to work better (plus I included the removal of any commas from the masked input):
$.validator.methods.minCheck = function (value, element, options) {
var validOrNot = true;
var minValue = ($('input[name=Quantity]').val() == 3) ? 0 : 1;
$('.amount-input', '#OrderEntryForm').each(function () {
if ($(this).val() != '' && $(this).val().replace(',','') < minValue) {
validOrNot = false;
}
});
return validOrNot;
};
However, I'd like it to only execute once whereas now it executes once for every single input (with ".amount-input") since I applied the rules at that control level. Is there a simple way to create and apply the rule in a way that it only executes once for the entire group of controls?