function doOutput(){var obj=document.getElementsByName("checkbox");var len = obj.length;var checked = false;for (i = 0; i < len; i++){if (obj[i].checked == true){checked = true;break;}}alert(checked);};
張貼留言
沒有留言:
張貼留言