从数据库循环数据,多选按钮数组 function type_1(){ //多选 var b= document.getElementsByName('service_zj_ids[]'); var a = document.getElementsByName('service_zj_ids[]').length; str = 0; for (var i=0; i<a; i++) { if(b[i].checked == true){ str = str+1; } }; if(str == 0)…