function check(form){
if (form.name.value==""){
alert("请输入登录名称!");form.name.focus();return false;
}
if (form.pwd.value==""){
alert("请输入密码!");form.pwd.focus();return false;
}
if(form.ident[0].checked){
document.form1.action="manager_Login";
}else{
document.form1.action="reader_Login";
}
}
</script>
/* *********************************************还可以如下:(转自http://blog.sina.com.cn/s/blog_77dbebbb010124jp.html)******************************************************** */
<html>
</html>
=============================================
<asp:RadioButtonList ID="rblID" runat="server" RepeatColumns="7" RepeatLayout="Flow">
</asp:RadioButtonList>
注意各选项radio.ID的html生成规则分别为:rblID_0、rblID_1、rblID_2。即等同于:
<input id="rblID_0" type="radio" name="rblID" value="1" checked="checked" />
<input id="rblID_1" type="radio" name="rblID" value="2" />
<input id="rblID_2" type="radio" name="rblID" value="3" />