jquery-validation / jquery-validation

jQuery Validation Plugin library sources

Home Page:https://jqueryvalidation.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

require_from_group not working on multi selects in Jquery v3+

bennybee opened this issue · comments

I have a basic form with 2 multi selects - I want the user to select an option in at least one of them.

On form submit, the fields are shown as valid even if they are empty.

If I switch to an older version of Jquery (2.2.4) the multi selects validate as they should.

These seems to be only an issue with multi selects, single selects work correctly in all jQuery versions.

Environment:
jquery v3.4.1
jquery-validate v1.19.3
additional-methods.js v1.19.3
chrome v96

demo here:
http://jsfiddle.net/4zn913ra/9/
Switch jQuery version to 2.2.4 to see it working properly

This issue/proposal has been automatically marked as idle and stale because it hasn't had any recent activity. It will be automatically closed if no further activity occurs. If you think this is wrong, or the problem still persists, just pop a reply in the comments and one of the maintainers will (try!) to follow up.
Thank you for contributing :)