$("input[type=checkbox]:checked").each ( function() {
alert ( $(this).val() );
});
or you can use
$("input:checkbox")
Selector
If all the checkboxes are inside the container, you can narrow the selector using
$("#containerID input[type=checkbox]:checked" )
source
share