日期:2014-05-16 浏览次数:20441 次
<script > function datanameEnable(checkObj) { var checkObjList = document.getElementsByName("check"); if(checkObj.checked){ targetObj.value+=checkObj.value+","; } if(!checkObj.checked){ targetObj.value=""; for(i=0;i <checkObjList.length;i++){ if(checkObjList[i].checked){ targetObj.value+=checkObjList[i].value+","; } } } } </script>