Call Jquery Validate on submit

0

I have a validation of two fields using remote of jquery Validate to avoid duplication in the base.

Example:

Campo A = Teste
Campo B = Minas Gerais

I added remote to campo B and the initial validation works, but when I make the change in campo A it does not call validation again.

I was able to solve the problem using the hint of this link: link

Based on this, I created my onChange function that looks like this:

$("#descricao").change(function () {
     $("#id").removeData("previousValue");
     $(addForm).validate().element("#id");
});

Thanks to all who responded!

    
asked by anonymous 16.04.2018 / 15:12

0 answers