<input name="RIGHT_TYPE" type="radio" value="1" onclick="form.haha.disabled=this.checked">111
解决方案 »
- 一个json解析处理的问题 求解决。
- jquery或者js怎么操作实体类中的值
- String.fromCharCode(event.keyCode),"client"是什么意思?
- Microsoft Script Debugger怎么所有的调试按钮都是灰色不可用的?
- 这样的效果怎么实现?
- javascript如何设置表单的action值
- window.open(url)中的url字符串长度是不是有限制的
- 一个小问题?急!
- 为什么?在ie5中提交表单时,提交到一个iframe中时,却在新窗口打开.
- javascript 正则 捕获组是什么意思?
- 高难度问题,用javascript动态加asp控件!
- checkbox的问题
<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>
如果是处在不同的form中该如何解决呀,
整个问题是这样的!
<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>
如:
document.form1.haha.disabled=true
document.form.haha.disabled=false
说的最好。
onclick="form.haha.disabled=false;form1.hehe.disabled=true;">111
onclick="form.haha.disabled=true;form1.hehe.disabled=false;">222