怎么写?当用户选择该“单选框”时,后面的文本框才是“visalbe"状态,否则文本框是”disabled" 用JAVASCRIPT来控制其属性。frmsetup.settle.disabled = true; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 </HEAD><SCRIPT LANGUAGE="JavaScript"><!--function handler1(current_radio){ if(current_radio.checked) { document.forms[0].my_text.style.visibility = "visible" document.forms[0].my_group[1].checked = false }}function handler2(current_radio){ if(current_radio.checked) { document.forms[0].my_text.style.visibility = "hidden" document.forms[0].my_group[0].checked = false }}//--></SCRIPT><BODY><form><INPUT TYPE="radio" NAME="my_group" onClick="handler1(this)">show<br><INPUT TYPE="radio" NAME="my_group" onClick="handler2(this)">hide<br><TEXTAREA NAME="my_text" ROWS="10" COLS="50" style="visibility:hidden"></TEXTAREA></form></BODY></HTML> http://expert.csdn.net/Expert/topic/1812/1812210.xml?temp=.3226892 <form> <input type= "radio" name= "r1" onclick= "this.form.file1.disabled = this.checked;" language= "javascript">disable <input type= "radio" name= "r1" onclick= "this.form.file1.disabled = !this.checked;" language="javascript">enable <input type="text" name= "file1"> </form> <input type = radio name = a onclick = "if (this.checked) t.disabled = true"><input type = radio name = a onclick = "if (this.checked) t.disabled = false"><input type = text id = t disabled> window.onload() 居然比 body.onload()执行时间还早 求机顶盒开发高手! 网易邮件事业部10月17日专场招聘会 注册页面用户名密码类型限制 急 急 发布的主页留言板留言页面写入数据时提交出错,在线等待 javascript input onchange event的一个问题 xml的加载错误? 简单的表单验证,在线!!!! netscape div scroll javascript简单小问,在线等待,马上给分! 如何打开一个全屏的窗口? 在线等:请问各位怎样可以让选中的表格行可编辑?
<SCRIPT LANGUAGE="JavaScript">
<!--
function handler1(current_radio)
{
if(current_radio.checked)
{
document.forms[0].my_text.style.visibility = "visible"
document.forms[0].my_group[1].checked = false
}
}function handler2(current_radio)
{
if(current_radio.checked)
{
document.forms[0].my_text.style.visibility = "hidden"
document.forms[0].my_group[0].checked = false
}
}
//-->
</SCRIPT>
<BODY>
<form>
<INPUT TYPE="radio" NAME="my_group" onClick="handler1(this)">show
<br>
<INPUT TYPE="radio" NAME="my_group" onClick="handler2(this)">hide
<br>
<TEXTAREA NAME="my_text" ROWS="10" COLS="50" style="visibility:hidden"></TEXTAREA>
</form>
</BODY>
</HTML>
<input type= "radio" name= "r1" onclick= "this.form.file1.disabled = this.checked;" language= "javascript">disable <input type= "radio" name= "r1" onclick= "this.form.file1.disabled = !this.checked;" language="javascript">enable
<input type="text" name= "file1">
</form>
<input type = radio name = a onclick = "if (this.checked) t.disabled = false">
<input type = text id = t disabled>