<script language=“javascript“>
function okClick(checkIds)
{
//将按钮设定为不可使用
document.zb.Submit.disabled =true;
//判断发送方式是否为空
var i=0;
var j;
for (i=0;i<checkIds.length;i++) {
if (checkIds[i].checked) {
j=1;
break;
}
}
if (j!=1) {
alert("请选择至少一种发送方式!")
document.zb.Submit.disabled =false;
return false;
}
}
</script>
<form name="zb" action="" method=post onsubmit="return okClick(this.SendMode)">
<input type="checkbox" name="SendMode" value="1" >短信
<input type="checkbox" name="SendMode" value="2" >固定电话
<input type="checkbox" name="SendMode" value="3" >手机
<input type="checkbox" name="SendMode" value="4" disabled>传真
<input type="checkbox" name="SendMode" value="5" disabled>Email
</form>