This is how my table structure looks,
<table>
<tbody>
<tr>
<td id="**SelectCheckBox**" class="helpBod">
<input id="TimeSheetWebUserControl1_TimeSheetRepeater_ctl01_CheckBox0" type="checkbox" name="TimeSheetWebUserControl1$TimeSheetRepeater$ctl01$CheckBox0"/>
</td>
<td>
</td>
</tr>
<tr>
<td id="**SelectCheckBox**" class="helpBod">
<input id="TimeSheetWebUserControl1_TimeSheetRepeater_ctl02_CheckBox1" type="checkbox" name="TimeSheetWebUserControl1$TimeSheetRepeater$ctl02$CheckBox1"/>
</td>
<td>
</td>
</tr>
<tr>
</tbody>
</table>
I have a button SelectAll im going to call a jquery function to check mark all the checkbox
function look this
function jqCheckAll() {
$("td#" + 'SelectCheckBox' + 'input:checkbox').attr('checked', true);
}
problem is this will check mark only only checkbox what if i have 100 checkbox, i want to check mark all the this 100 checkbox on click of select all button.