<input type=checkbox name=bb><br>
<input type=checkbox name=bb><br>
<input type=checkbox name=bb><br>
<input type=checkbox name=bb><br>
<input type=checkbox name=bb><br>
<input type=button value=ok onclick=cc()><script language=javascript>
function cc()
{
var a = document.getElementsByName("bb");
for (var i=0; i<a.length; i++)
if (a[i].checked) return true;
alert("对不起,你一个都没有选!");
return false;
}
</script>
<input type=checkbox name=bb><br>
<input type=checkbox name=bb><br>
<input type=checkbox name=bb><br>
<input type=checkbox name=bb><br>
<input type=button value=ok onclick=cc()><script language=javascript>
function cc()
{
var a = document.getElementsByName("bb");
for (var i=0; i<a.length; i++)
if (a[i].checked) return true;
alert("对不起,你一个都没有选!");
return false;
}
</script>
var chklist=document.all("mail_id");
if (chklist.length != null){
for (var i=0;i<chklist.length;i++){
if (chklist[i].checked) return true;
}
}
alert("你没有选择记录!");
return false;
救命——————————————————
救命——————————————————