You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is buggy, in that it ignores all form fields before the require_from_group fields when submit is clicked.
To fix this you have to add a check for currentElements.lenght == 1
if(validator.currentElements.length==1){// fix other fields not getting validatedif(!$(element).data('being_validated')){varfields=$(selector,element.form);fields.data('being_validated',true);fields.valid();fields.data('being_validated',false);}}
The text was updated successfully, but these errors were encountered:
This is not a duplicate as far as I understand it. The issue remains with the current master branch code.
It's not about all other field, but all the previous fields in a form. Fields after the group get validated. I haven't been able to fix the issue with any other solutions out there, but with the code I posted here.
But I'm sure I'm missing something. Thanks anyway :)
the additional custom rule "require_from_group" here:
https://github.com/jzaefferer/jquery-validation/blob/master/additional-methods.js#L352
Is buggy, in that it ignores all form fields before the require_from_group fields when submit is clicked.
To fix this you have to add a check for currentElements.lenght == 1
The text was updated successfully, but these errors were encountered: