js页面拼接多个checkbox的值
var conType = "";
var conTypes = document.getElementsByName("contact_Type");
for(var i = 0;i < conTypes.length ; i ++){
if (conTypes[i].checked){
conType = conType+conTypes[i].value+",";
}
}
conType = conType.substring(0,conType.length-1);