checkbox是否被选择
判断checkBox是否被选择了:
function checkAllCommand(){
var checkBox = document.getElementsByName("jqg_wfgrid1_1");
if($("#cb_wfgrid1").attr("checked")){
for(var i = 0; i < checkBox.length; i ++){
checkBox[i].checked = true;
}
}else{
for(var i = 0; i < checkBox.length; i ++){
checkBox[i].checked = false;
}
}
}