62,046
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"> </script>
<script>
function checkAll(checked) {
$('#<%=DG_Group.ClientID %> input:checkbox').attr("checked", checked);
}
</script>
<asp:CheckBox ID="CheckBox2" onclick='checkAll(this.checked);' runat="server" />
var input = document.getElementsByTagName("input");
for(var i = 0 ; i < input.length ; i++){
if(input[i].type == "checkbox"){
....
}
}