jQuery Validation with depends

Posted by user2262459 on Stack Overflow See other posts from Stack Overflow or by user2262459
Published on 2013-10-19T21:50:57Z Indexed on 2013/10/19 21:53 UTC
Read the original article Hit count: 126

Filed under:

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.

© Stack Overflow or respective owner

Related posts about jQuery