1.0.0 • Published 1 year ago
@aarongustafson/form-required-checkboxes v1.0.0
Required Checkboxes Web Component
Currently, we can only make checkboxes required or not, individually. In some cases you need to be able to set a specific number of checkboxes that need to be checked. The form-required-checkboxes
web component enables that.
API
Markup Assumptions
This web component assumes you will be marking up your checkbox group in a fieldset
with a legend
and that all of the checkboxes share a name
(e.g., "foo[]").
Demo
1.0.0
1 year ago