全选
来源:互联网 发布:手机日志软件 编辑:程序博客网 时间:2024/04/28 01:58
///全选或取消全选方法
function selectAll(box){
var boxList = document.getElementsByTagName("input");
if(box.checked){
var i = 0;
for(;i<boxList.length;i++){
if(boxList[i].type=="checkbox" && boxList[i].id != "selectAll"){
boxList[i].checked="checked";
checkBoxCollector(boxList[i]);
}
}
}else{
var i=0;
for(;i<boxList.length;i++){
if(boxList[i].type=="checkbox" && boxList[i].id != "selectAll"){
boxList[i].checked = null;
checkBoxCollector(boxList[i]);
}
}
}
}
function selectAll(box){
var boxList = document.getElementsByTagName("input");
if(box.checked){
var i = 0;
for(;i<boxList.length;i++){
if(boxList[i].type=="checkbox" && boxList[i].id != "selectAll"){
boxList[i].checked="checked";
checkBoxCollector(boxList[i]);
}
}
}else{
var i=0;
for(;i<boxList.length;i++){
if(boxList[i].type=="checkbox" && boxList[i].id != "selectAll"){
boxList[i].checked = null;
checkBoxCollector(boxList[i]);
}
}
}
}
- 全选
- 全选
- 全选
- 全选
- 全选
- 全选
- 全选
- 全选
- 全选
- 全选
- 全选
- 全选
- 全选
- 全选
- 全选
- 全选
- 全选
- 全选
- XP系统,在运行中用cmd命令就重新启动电脑
- 14. 59. 3.从AbstractTableModel继承 Extending AbstractTableModel
- java连接池配置(xml)
- Dennis Ritchie(纪念)
- Linux如何开机自动运行自己的脚本
- 全选
- Linux笔记
- .net session超时设置 sessionState的相关属性
- Transaction rolled back because it has been marked as rollback-only
- Vim笔记
- Hibernate 源码解读
- Vim设置
- A Gentle introduction to Cedet
- 求最大公约数算法