嗨,所有其他复选框时,我如何检查复选框
<div id="Row-8">
<span class="span2">
<label class="checkbox">
<input type="checkbox" class="regular-checkbox" onchange="checkallrowcheckboxes(this)" value="8" name="selectedObjects" id="8"><label for="rowcommoncheckbox-8"></label></label></span>
<span class="span2">AddOrEdit</span>
<span class="span2">
<label class="checkbox">
<input type="checkbox" value="8" class="regular-checkbox" name="chkAdd" id="Add-8"><label for="Add-8"></label></label></span>
<span class="span2">
<label class="checkbox">
<input type="checkbox" value="8" class="regular-checkbox" name="chkEdit" id="Edit-8"><label for="Edit-8"></label></label></span>
<span class="span2">
<label class="checkbox">
<input type="checkbox" value="8" class="regular-checkbox" name="chkDel" id="Delete-8"><label for="Delete-8"></label></label></span>
<span class="span2">
<label class="checkbox">
<input type="checkbox" value="8" class="regular-checkbox" name="chkview" id="View-8"><label for="View-8"></label></label></span>
</div>
看起来像这样
ChkColumn PageName Chk1 Chk2 Chk3 Chk4
我想要的是当右侧 os 行中的所有复选框都被选中时,左侧复选框应该被自动选中..即 Chkcolumn 应该在 Chk1 Chk2 Chk3 Chk4 被检查时自动检查..