I have a form with many checkboxes, some of which have a specific data property (say data-myname
). Now, on click of a button, I need to get the collection of checkboxes that are either checked
or have the property data-myname
(checked or not) and use inside $.each(filteredCollection, function(){.....})
.
I looked at using .map and .filter, but due to my limited understanding of these functions, I am not able to get the right sequence of conditions to be used.
Any help will be greatly appreciated.
Aucun commentaire:
Enregistrer un commentaire