<input name="RIGHT_TYPE" type="radio" value="1" onclick="form.haha.disabled=this.checked">111

解决方案 »

  1.   

    如要那么多form?这样就行了!
    <form name=f>
    <input name="RIGHT_TYPE" type="radio" value="1" onclick="haha.disabled=false;hehe.disabled=true;">111 
    <input name="RIGHT_TYPE" type="radio" value="2" onclick="haha.disabled=true;hehe.disabled=false;" >222<BR>
    <input type="button" name="haha" value="haha" disabled><BR>
    <input type="button" name="hehe" value="hehe" disabled>
    </form>
      

  2.   

    是必须放在那么多的<form>中!
      

  3.   

    各位高手,程序是放在放在不同的<form>中!我只是简化了页面内容!·
    如果是处在不同的form中该如何解决呀,
      

  4.   

    要实现的效果:选择111则gg和hehe灰掉,选择222则hh和haha灰掉!
    整个问题是这样的!
    <form name=f>
    <input name="RIGHT_TYPE" type="radio" value="1">111 
    <input name="RIGHT_TYPE" type="radio" value="2">222
    <input type="button" name="hh" value="hh"> 
    <input type="button" name="gg" value="gg"> 
    <form>
    <br>
    <form name=form>
    <input type="button" name="haha" value="haha"> 
    </form>
    <br>
    <form name=form1>
    <input type="button" name="haha" value="hehe">
    </form>
      

  5.   

    一样了,只是要指明是那个FORM就行了.
    如:
    document.form1.haha.disabled=true
    document.form.haha.disabled=false
      

  6.   

    楼上说的对,不过偶觉得还是      afoskoo(暂停打印)
     说的最好。
      

  7.   

    指明form就行了.
    onclick="form.haha.disabled=false;form1.hehe.disabled=true;">111 
    onclick="form.haha.disabled=true;form1.hehe.disabled=false;">222