这个input框,怎么不能alert它的值啊????????????????????????????????? <input type="radio" name="aa" value="y" onclick="alert(document.form1.aa.value)"> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 sorry,i have make a mistake,the following code is right:<html><head><SCRIPT language=JavaScript type=text/JavaScript><!-- function tt(){if (document.form1.aa[0].checked){ alert(document.form1.aa[0].value);}else if (document.form1.aa[1].checked){ alert(document.form1.aa[1].value);}}//--></script></head><body><form name="form1"><input type="radio" name="aa" value="y" onclick=tt()> 是 <input type="radio" name="aa" value="n" checked onclick=tt()> 否</form></body></html> ip切换城市;修改ip地址,为什么城市名不变呢? selected永远被返回... php mysql_connect连接不上时候,输出错误 phpadmin因忘记密码无法登陆数据库的问题 表单提交的问题,大家来看看 VC6写的Web service客户端如何连接PHP服务器端 关于mkdir这个函数的问题 thinkphp动态加载菜单的问题 又一个关于session的问题请教大家 求助一个php文件,在线等待,给分100,谢谢大家 可能是网上的第一本chm格式的手册,wml手册提供下载 NULL 问题
<head>
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function tt(){
if (document.form1.aa[0].checked){
alert(document.form1.aa[0].value);
}
else if (document.form1.aa[1].checked){
alert(document.form1.aa[1].value);
}
}
//-->
</script>
</head>
<body>
<form name="form1">
<input type="radio" name="aa" value="y" onclick=tt()>
是
<input type="radio" name="aa" value="n" checked onclick=tt()>
否
</form>
</body>
</html>