标签:rem attribute log pre body nts nbsp cti classname
<script type="text/javascript">
function checkall(qx)
{
var ck=document.getElementsByClassName("ck");
if(qx.checked)
{
for (var i=0;i<ck.length;i++)
{
ck[i].setAttribute("checked","checked");
}
}
else {
for (var i = 0; i < ck.length; i++) {
ck[i].removeAttribute("checked");
}
}
}
</script>
标签:rem attribute log pre body nts nbsp cti classname
原文地址:http://www.cnblogs.com/yangshiqi/p/6440625.html