key目录变化

This commit is contained in:
ibuler
2015-11-16 22:45:41 +08:00
parent 71ef4b079a
commit 67771105ae
8 changed files with 24 additions and 70 deletions

View File

@@ -17,10 +17,19 @@ function check_all(form) {
}
function checkAll(){
// 选择该页面所有checkbox
$('input[type=checkbox]').each(function(){
$(this).attr('checked', true)
})
var checklist = document.getElementsByName ("checked");
if(document.getElementById("check_all").checked)
{
for(var i=0;i<checklist.length;i++)
{
checklist[i].checked = 1;
}
}else{
for(var j=0;j<checklist.length;j++)
{
checklist[j].checked = 0;
}
}
}
//提取指定行的数据JSON格式