I have 3 input fields that ask for the number of people, and of them how many are adults and how many are children. I am trying to use jQuery validate plugin to add a custom
The answer by Sparky is not complete: the adults and children need to re-validate attendees when changed.
adults
children
attendees
Append this at the end:
$('input[name=adults],input[name=children]').on('change', function(){ $('input[name=attendees]').removeData("previousValue").valid(); });