js代码:
function checkAll() { for(var a = document.getElementById("checkAll"), b = document.getElementsByName("checkOne"), c = 0; c < b.length; c++) b[c].checked = 1 == a.checked ? !0 : !1 }
Demo:
js代码:
function checkAll() { for(var a = document.getElementById("checkAll"), b = document.getElementsByName("checkOne"), c = 0; c < b.length; c++) b[c].checked = 1 == a.checked ? !0 : !1 }
Demo:
评论前必须登录!
注册