刚学,请赐教!
同时想结交jsp学习的朋友
我的qq70625498

解决方案 »

  1.   

    <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>
      

  2.   

    这样好看些
    <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>
      

  3.   

    我是要把这个叶面上radio中选择是哪个,  传给下一个叶面,只要知道选择了哪一个,用来判断就可以了,那要怎么写呢
    谢谢你!