Adding custom attributes to an asp:CheckBox control
use InputAttributes
Here is the code I have used:
cb.InputAttributes.Add("data-group", "chkbox");
Then you can use JQuery to target all check-boxes.
$("*[data-group='chkbox']").prop("checked", true);