送分2:radiogroup 取值问题 刚学,请赐教!同时想结交jsp学习的朋友我的qq70625498 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <form id="form1" name="form1" method="post" action=""> <p> <label> <input name="RadioGroup1" type="radio" value="1" checked="checked" onclick="document.all.flag.value=document.all.RadioGroup1.value;"/> </label> 全部职工<br /> <label> <input type="radio" name="RadioGroup1" value="2" onclick="document.all.flag.value=document.all.RadioGroup1.value;"/> 职工号:</label> <input name="cardid" type="text" value="MT0010008" /> <br /> </p><INPUT TYPE="hidden" name="flag"></form> 这样好看些<SCRIPT LANGUAGE="JavaScript"><!-- function setVar(obj) { oVar = obj.value; document.all.flag.value=oVar; alert(document.all.flag.value) }//--></SCRIPT><form id="form1" name="form1" method="post" action=""> <p> <label> <input name="RadioGroup1" type="radio" value="1" onclick="setVar(this);"/> </label> 全部职工<br /> <label> <input type="radio" name="RadioGroup1" value="2" checked onclick="setVar(this);"/> 职工号:</label> <input name="cardid" type="text" value="MT0010008"> <br /> </p><INPUT TYPE="hidden" name="flag"></form> 我是要把这个叶面上radio中选择是哪个, 传给下一个叶面,只要知道选择了哪一个,用来判断就可以了,那要怎么写呢谢谢你! 跪求EXTJs的DESKTOP例子 奇怪? 关于调用QQ聊天(比较急) 如何nokia widget 的JS 怎么弄 还请教一下! d大家来帮忙看看 Dojo 在国内流行吗,介绍点书籍吧 怎样用js验证文本框输入只能输入半角,不让输入全角。 请问用IE进行页面打印时,怎样消除顶部和尾部的系统信息? 关于固定表头和列,加改变列宽的问题,高难度!!!! 鼠标变化
<p>
<label>
<input name="RadioGroup1" type="radio" value="1" checked="checked" onclick="document.all.flag.value=document.all.RadioGroup1.value;"/>
</label>
全部职工<br />
<label>
<input type="radio" name="RadioGroup1" value="2" onclick="document.all.flag.value=document.all.RadioGroup1.value;"/>
职工号:</label>
<input name="cardid" type="text" value="MT0010008" />
<br />
</p><INPUT TYPE="hidden" name="flag">
</form>
<SCRIPT LANGUAGE="JavaScript">
<!--
function setVar(obj) {
oVar = obj.value;
document.all.flag.value=oVar;
alert(document.all.flag.value)
}
//-->
</SCRIPT>
<form id="form1" name="form1" method="post" action="">
<p>
<label>
<input name="RadioGroup1" type="radio" value="1" onclick="setVar(this);"/>
</label>
全部职工<br />
<label>
<input type="radio" name="RadioGroup1" value="2" checked onclick="setVar(this);"/>
职工号:</label>
<input name="cardid" type="text" value="MT0010008">
<br />
</p><INPUT TYPE="hidden" name="flag">
</form>
谢谢你!