画几个根据情况定:
Private Sub Command1_Click()
Dim i As Integer
For i = 0 To 2
Check1(i)Value = 1
Next i
End Sub
Private Sub Command2_Click()
Dim i As Integer
For i = 0 To 2
Check1(i)Value = 0
Next i
End Sub
<input type="checkbox" name="checkAll" class="selectAll" onclick="chkChange();" />
<input type="checkbox" class="cb_box " name="chdel"/>
//全选||全不选
function chkChange() {
if ($("selectAll")attr("checked")) {
$("cb_box")each(function () {
$(this)attr("checked", true);
});
} else {
$("cb_box")each(function () {
$(this)attr("checked", false);
});
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)