How can I check if a checkbox in a checkbox array is checked using the id of the checkbox array?
I am using the following code, but it always returns the count of ch
jQuery code to check whether the checkbox is checked or not:
if($('input[name="checkBoxName"]').is(':checked')) { // checked }else { // unchecked }
Alternatively:
if($('input[name="checkBoxName"]:checked')) { // checked }else{ // unchecked }