<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr"/>
<title>Group Check</title>
<SCRIPT type="text/javascript">
function chkOne(obj)
{
   var chkBox = obj.form.elements['chkGroup'];
   var chkLen = chkBox.length;

 var chkNum = 0;
 for (var i=0; i < chkLen; i++)
 {
  if(chkBox[i].checked) chkNum++;
 }

 if(chkNum<1)
 {
  alert('체크해~~~');
 }
}
</SCRIPT>
</head>

<body>

<form name="ContentListForm" onSubmit="return formCheck(this)">
<table>
   <tr>
      <th><input type="CHECKBOX" name="chkGroup" value="1050"/></th>
      <td>test....</td>
   </tr>
   <tr>
      <th><input type="CHECKBOX" name="chkGroup" value="1050"/></th>
      <td>test....</td>
   </tr>
   <tr>
      <th><input type="CHECKBOX" name="chkGroup" value="1050"/></th>
      <td>test....</td>
   </tr>
</table>
<input type="button" value="입력이야. 박스체크해.." onClick="chkOne(this)"/>
</form>

</body>
</html>

Posted by 말없제이
,