<!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…
全选与反选 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")==&…