check if a checkbox in a loop is selected jquery code example
Example: how get checkbox if checked in jquery
if($("#rule").is(":checked")){
$("#form").submit();
}
if($("#rule").is(":checked")){
$("#form").submit();
}