victorjonsson / jQuery-Form-Validator

[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.
972 stars 476 forks source link

isValid returns true but submit returns validation errors #635

Closed AurelDragut closed 7 years ago

AurelDragut commented 7 years ago

Hello,

I have an <a> tag as 'submit button' for a form, when i check form.isValid this tag changes according to the return of isValid, but i got the issue that isValid returns true, the button becomes valid due to my changes and when i push the button it returns validation errors. What can i do?

the validation rules are added inline to the input tags, should i pass any parameters to isValid in this case?

victorjonsson commented 7 years ago

Are you using any async validators?

AurelDragut commented 7 years ago

No, sorry i forgot to close the issue. The problem was that i didn't add a configuration as a parameter to the isValid method, i fixed that and its working now. Thanks!