How might I check if a checkbox in a checkbox array is checked utilizing the id of the checkbox array?
I'm utilizing the accompanying code, however, it generally returns the count of checked checkboxes regardless of id.
function isCheckedById(id) {
alert(id);
var checked = $("input[@id=" + id + "]:checked").length;
alert(checked);
if (checked == 0) {
return false;
} else {
return true;
}
}