首页 > 代码库 > JS遍历ChexkBoxList

JS遍历ChexkBoxList

1 var cboxs = $("#cblAuth input[type=checkbox]");2             var k = 0;3             for (var i = 0; i < cboxs.length; i++) {4                 if (cboxs[i].checked == "checked" || cboxs[i].checked == true) {5                     k++;6                 }7             }

 

JS遍历ChexkBoxList