0
I have a validation of two fields using the remote
of jquery Validate to avoid duplication in the.
Example:
Campo A = Teste
Campo B = Minas Gerais
I added the remote
in the campo B
and the initial validation works, but when I make the change in the campo A
it does not call the validation again.
I was able to solve the problem using the hint of this link: https://stackoverflow.com/questions/6313417/using-jquery-validate-remote-on-multi-select-element
Based on it I created my function in onChange that looked like this:
$("#descricao").change(function () {
$("#id").removeData("previousValue");
$(addForm).validate().element("#id");
});
Thank you to all who responded!
Put the code of what you’ve done so far, so it’s easier for someone to help you.
– Diego Vieira
Does that help? https://stackoverflow.com/questions/23941338/validating-multiple-forms-on-the-same-page
– Lollipop
or: https://stackoverflow.com/questions/14354322/jquery-remote-validation-for-multiple-fields
– Lollipop