I need jquery help.
I set the checkboxes as follows
<span class="checked">
<input class="cbid" type="checkbox" name="cb1">
</span>
<span >
<input class="cbid" type="checkbox" name="cb2">
</span>
<span class="checked">
<input class="cbid" type="checkbox" name="cb3">
</span>
I need to create an array using the value of the name attribute of the flags, where the parent class (span) is 'checked'
eg.
["CB1", "CB3"]
thank
source
share