I have tons of checkboxes that are either checked (checked="checked"
) or unchecked.
I would like to get the number of all checkboxes, unchecked and checked checkboxes.
With check-box I mean <input type="checkbox" />
.
How can this be done with jQuery?
let myCheckboxList = $('.mycxk');
to reuse it after thismyCheckboxList.filter(':checked').length
. – Xanthin