how to get selected checkboxes and loop through to see if they are right javascript code example
Example: loop through checkboxes jquery
$('input[type=checkbox]').each(function () {
sList += "(" + $(this).val() + "-" + (this.checked ? "checked" : "not checked") + ")";
});