jQuery Validation with depends
- by user2262459
I would like to do validation which depends on other input value in same form.
$( "#step1" ).validate({
rules: {
weight: {
required: true,
max: $('#maxweight'),
min: 1
},
...
I was reading all documentation: http://jqueryvalidation.org/, but I can not find anything about using other values from form to validate maximum value of other #id.
Thank you in advance for help.