关于表单中checkbox的验证!高分求助! 不是netscape不管用,而是你写的javascript脚本可能它的浏览器不支持,查一下相关资料,换换共同支持的对象 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 比如:document.regform.chnl01.checked 改为document.all("chn101").checked不知道行不行 <html><head><title>表单</title><meta http-equiv="Content-Type" content="text/html; charset=GB2312" /><script type="text/javascript" language="javascript">function checkform(thisform){if (!(document.regform.Channel[0].checked || document.regform.Channel[1].checked)){ alert("请选择您了解我们的信息的渠道"); document.regform.chnl01.focus(); document.regform.chnl01.select(); return false; }return true;}</script></head><body bgcolor="#ffffff"><form action="http://cgi-bin/***" method="post" name="regform" onsubmit="return checkform( this );"><h3>了解我们的信息的渠道是:</h3><input type="checkbox" name="Channel" value="北京青年报" id="chnl01" /><label for="chnl01">北京青年报</label><input type="checkbox" name="Channel" value="新闻晨报" id="chnl02" /><label for="chnl02">新闻晨报</label><br /><br /><input type="submit" name="Submit" value="提交" /></from></body></html> NC4.X 不支持 document.form名.id名这样的写法,要换成document.form名.name名NC7.X没关系。 json递归问题 jQuery EasyUI中tab的单击刷新 如何判断某个Div当前是否属于mouseover鼠标事件? JSP小问题 Jquery then,来个高手指教 想找一个做页面制作的合作伙伴! 怎样在打开一个窗口后让它缓慢的移到一个指定的位置? 一个关于JavaScript的超高难度问题,(小女生大派送啊,超急在线等。) http://218.12.112.9/index1.asp(大家帮看看) 聊天程序内容无法发送 查询统计? 新手请教:javascript函数的应用问题
<head>
<title>表单</title>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<script type="text/javascript" language="javascript">
function checkform(thisform)
{
if (!(document.regform.Channel[0].checked || document.regform.Channel[1].checked)){
alert("请选择您了解我们的信息的渠道");
document.regform.chnl01.focus();
document.regform.chnl01.select();
return false;
}
return true;
}
</script>
</head><body bgcolor="#ffffff"><form action="http://cgi-bin/***" method="post" name="regform" onsubmit="return checkform( this );">
<h3>了解我们的信息的渠道是:</h3>
<input type="checkbox" name="Channel" value="北京青年报" id="chnl01" />
<label for="chnl01">北京青年报</label>
<input type="checkbox" name="Channel" value="新闻晨报" id="chnl02" />
<label for="chnl02">新闻晨报</label>
<br />
<br />
<input type="submit" name="Submit" value="提交" /></from></body>
</html>