JSFiddle - React, Tailwind, and code Playground
HTML
<button id="myButton">checkFromCheckedCheckboxToCheckedCheckbox</button>
<button id="myOtherButton">uncheckAllCheckedCheckboxes</button>
<div id="report_24338907328870015431_catch">
<table class="uReportContainer" id="report_deptForm" summary="">
<tbody class="uReportPagination">
<tr>
<td></td>
</tr>
</tbody>
<tbody class="uReportBody">
<tr>
<td>
<table summary="deptForm" class="uReport uReportStandard" id="deptTable">
<thead>
<tr>
<th align="left" id="CHECK$01">CHECK$01</th>
<th align="left" id="DEPTNO">DEPTNO</th>
<th align="left" id="DNAME">DNAME</th>
<th align="left" id="LOC">LOC</th>
</tr>
</thead>
<tbody>
<tr>
<td headers="CHECK$01">
<input type="checkbox" name="f11" value="">
</td>
<td headers="DEPTNO">
<input type="hidden" name="f12" value="">
</td>
<td headers="DNAME">
<input type="text" name="f13" size="20" maxlength="2000" value="">
</td>
<td headers="LOC">
<input type="text" name="f14" size="20" maxlength="2000" value="">
<input type="hidden" name="f01" value="<input type="hidden" name="fcs" value="A884FA378C851786DDFE3A33709CB23C" />" id="f01_0001">
</td>
</tr>
...
JavaScript
$("#myButton").click(function () {
var f=$("input[type=checkbox]").index($('input[type=checkbox]:checked').first());
var ls = $("input[type=checkbox]").index($('input[type=checkbox]:checked').last());
for(var i=f;i<=ls;i++)
{
$("input[type=checkbox]").eq(i).prop('checked', true);
}
});
$("#myOtherButton").click(function () {
$('input[type=checkbox]:checked').prop('checked', false);
});