function IsCheck(chk)
{
var form= document.getElementById("form1");
for(var i=0 ; i < form.length; i++)
{
if ( form.elements[i].type == "checkbox")
{
form.elements[i].checked = chk;
}
}
}
在源代码里引用:
<div style=" float:left; margin:10px 0px 0px 20px; text-align:left; line-height:25px; width:100px;">
<input type="checkbox" id="chk" onclick="IsCheck(this.checked)" />全选
</div>
895

被折叠的 条评论
为什么被折叠?



