JSFiddle - React, Tailwind, and code Playground
HTML
<table id="CheckBoxList1">
<tr>
<td><input id="CheckBoxList" type="checkbox" name="CheckBoxList1$0" value="One" /><label for="CheckBoxList1_0">One</label></td>
</tr><tr>
<td><input id="CheckBoxList" type="checkbox" name="CheckBoxList1$1" value="Two" /><label for="CheckBoxList1_1">Two</label></td>
</tr><tr>
<td><input id="CheckBoxList" type="checkbox" name="CheckBoxList1$2" value="Three" /><label for="CheckBoxList1_2">Three</label></td>
</tr>
</table>
<input type="button" id="btnSubmit" value="Submit" />
JavaScript
$(function() {
function hasBoxesChecked() {
var selected = new Array();
$('#checkboxes input:checked').each(function() {
selected.push($(this).attr('name'));
});
alert(selected);
return selected.length > 0;
}
$("#btnSubmit").click(function() {
alert(hasBoxesChecked());
});
});