全选与反选 function SelectAll(){ var check = document.getElementsByTagName("input"); // 获取所有input标签 var all = document.getElementById('all'); // 获取全选按钮 if(all.checked){ for(var i=0;i<check.length;i++){ if(check[i].getAttribute("type")==&…
function SelectAll() { var checkboxs=document.getElementsByName("chk_list"); for (var i=0;i<checkboxs.length;i++) { var e=checkboxs[i]; e.checked=!e.checked; } } <input type="checkbox" name="choose">跳舞 <input type…
<script type="text/javascript" language="javascript"> function checkAll(id,name)//此方法用来全选和全消复选框 { var items=document.getElementsByName(name); var itemall=document.getElementById(id); for(var i=0;i<items.length;i++){ items[i].c…
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>html+css+js实现复选框全选与反选</title> <meta http-equiv="content-type" conten…