<form name="form1" method="post" action="a.asp">
<input type="radio" name="radio" value="1">
<input type="radio" name="radio" value="2">
<input type="radio" name="radio" value="3">
<input type="radio" name="radio" value="4">
<input type="submit" name="Submit" value="Submit">
</form>
然后判断request.form("radio")来判断哪个单选框被选中
<input type="radio" name="radio" value="1">
<input type="radio" name="radio" value="2">
<input type="radio" name="radio" value="3">
<input type="radio" name="radio" value="4">
<input type="submit" name="Submit" value="Submit">
</form>
然后判断request.form("radio")来判断哪个单选框被选中
解决方案 »
- 用javascript实现将多个字符串组合成一个字符串
- ext中treepanel点击某个节点时候 动态加载对应的js并且激活js中的panel
- 三级联动 带iframe一起变更
- 关于innerHTML的新问题(继续昨天的)
- 怎么样实现点左边的treeView页面显示在右边,和csdn的社区这样
- 请教 使用iframe做垫片 防止FLASH被 下拉菜单 档住时的处理问题
- js 设置网页打印的页眉页脚和页边距
- 返回上一页并刷新页面的问题(JSP)
- 请问如何过滤数组中的空白项?
- window.open一个新窗口,怎么让最大化失效?
- 关于网页里图片特效 急 在线等 100分马上送出
- 请问这个语法是什么意思?
<form name="form1" method="post" action="a.asp">
<input type="radio1" name="radio" value="1">
<input type="radio2" name="radio" value="2">
<input type="radio3" name="radio" value="3">
<input type="radio4" name="radio" value="4">
<input type="submit" name="Submit" value="Submit">
</form>
<!--Edit By Stefli
function chk(){
var obj = document.getElementsByName("stefli");
var objlen = obj.length;
for(var i=0;i<objlen;i++){
if(obj[i].checked==true){
alert("你选择了第"+(i+1)+"个radio哦!");
}
}
}
//-->
</script>
<form name="frmstefli">
<input type="radio" name="stefli">1
<input type="radio" name="stefli">2
<input type="radio" name="stefli">3
<input type="radio" name="stefli">4
<input type="radio" name="stefli">5
<input type="radio" name="stefli">6
<input type="button" onClick="chk()" value="检测">
</form>
<input type="radio1" name="radio" value="1">
<input type="radio2" name="radio" value="2">
<input type="radio3" name="radio" value="3">
<input type="radio4" name="radio" value="4">
<input type="submit" name="Submit" value="Submit">
</form>
<!--
function chk(){
var obj = document.getElementsByName("test");
var objlen = obj.length;
for(var i=0;i<objlen;i++){
if(obj[i].checked==true){
alert(obj[i].value);
}
}
}
//-->
</script>
<form name="frmtest">
<input type="radio" name="test" value="11">
<input type="radio" name="test" value="22">
<input type="radio" name="test" value="33">
<input type="radio" name="test" value="44">
<input type="radio" name="test" value="55">
<input type="radio" name="test" value="66">
<input type="button" onClick="chk()" value="检测">
</form>