jquery validate check at least one checkbox

前端 未结 9 1959
情书的邮戳
情书的邮戳 2020-12-02 08:32

I have something like this:

9条回答
  •  独厮守ぢ
    2020-12-02 09:25

    sir_neanderthal has already posted a nice answer.

    I just want to point out that if you would like to use different names for your inputs you can also use (or just copy the method) require_from_group method from official jQuery Validation additional-methods.js (link to CDN for version 1.13.1).

提交回复
热议问题