I would like to verify if the Age in a numeric field is less than 16 years old, and if it is less, it will show a message as I have achieved in this example (that work for the first value, but not for the other if you add more):
$('#q74 input').on('change', function() {
if ($('#q74 input').val() <= "15") {
alert('Your age is under 16, you must be 16 or older to be a member.');
$('.Submit').hide();
} else {
$('.Submit').show();
}
});
});
But if more fields are added to the collector, obviously the id of the field changes to #q74(1) or #q74(2), etc, as the number of records within the Collector increases, so that it could check this value in all the variants that the field can have?
Thank You