Menu icon Foundation
Dynamic Checkbox Validation

How to validate dynamic checkboxes using foundation?

checkbox validation

How to validate dynamic checkboxes using foundation?

Jeanie Chung over 4 years ago

Hey there-

Could you offer a bit more detail as to what you're trying to accomplish?

If you're trying to check whether or not a checkbox is valid, you can always use the jQuery method ".is()" to validate:

$('#checkboxSelector').is(':checked');

will return a true/false boolean whether or not your checkbox is selected.