<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" charset="GB2312">
<title>ÎÞ±êÌâÎĵµ</title>
<script language="javascript">
function disable()
{var pnode = document.getElementById("aaa");
var radioes = pnode.getElementsByTagName("input");for (var i=0; i<radioes.length; i++)
{
if (radioes[i].type == 'radio')
{ radioes[i].disabled = true; }
}
}function release()
{var pnode = document.getElementById("aaa");
var radioes = pnode.getElementsByTagName("input");for (var i=0; i<radioes.length; i++)
{
if (radioes[i].type == 'radio' && radioes[i].disabled)
{ radioes[i].disabled = false; }
}
}</script>
</head>
<body><form name="form1">
<table width="200" border="1" cellspacing="0" cellpadding="0" id="aaa">
<tbody>
<tr>
<td>
<input type = "radio" name = "111" checked>Enable</input><input type = "radio" name = "111" >Disable</input>
</td>
</tr>
<tr>
<td>
<input type = "radio" name = "333" checked>Enable</input><input type = "radio" name = "333" >Disable</input>
</td>
</tr>
</tbody>
</table>
</form>
<br>
<input type="button" name="replaceNode" value="Disable" onClick="disable()">
<input type="button" id="release" name="release" value="Release It!!" onclick="release();">
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" charset="GB2312">
<title>ÎÞ±êÌâÎĵµ</title>
<script language="javascript">
function disable()
{var pnode = document.getElementById("aaa");
var radioes = pnode.getElementsByTagName("input");for (var i=0; i<radioes.length; i++)
{
if (radioes[i].type == 'radio')
{ radioes[i].disabled = true; }
}
}function release()
{var pnode = document.getElementById("aaa");
var radioes = pnode.getElementsByTagName("input");for (var i=0; i<radioes.length; i++)
{
if (radioes[i].type == 'radio' && radioes[i].disabled)
{ radioes[i].disabled = false; }
}
}</script>
</head>
<body><form name="form1">
<table width="200" border="1" cellspacing="0" cellpadding="0" id="aaa">
<tbody>
<tr>
<td>
<input type = "radio" name = "111" checked>Enable</input><input type = "radio" name = "111" >Disable</input>
</td>
</tr>
<tr>
<td>
<input type = "radio" name = "333" checked>Enable</input><input type = "radio" name = "333" >Disable</input>
</td>
</tr>
</tbody>
</table>
</form>
<br>
<input type="button" name="replaceNode" value="Disable" onClick="disable()">
<input type="button" id="release" name="release" value="Release It!!" onclick="release();">
</body>
</html>
解决方案 »
- js错误:The content of elements must consist of well-formed character data or marku
- java highcharts 导出图片 中文乱码问题
- 提交方式 action="${fn:getLink('co/coCheck.jsp') }" method="post"> <
- 请问 在netscape中怎么输出html
- 怎样使弹出的窗口无最大化和最小化按钮?
- 这个问题真让我头痛!!!
- 浮动并定位的问题?一定送分
- 如何监视input type=text的value的变化?
- to net_lover(孟子E章),help me please.
- 请问如何将json属性值转为二维数组
- 如何去掉超链接?
- 關閉窗口時,系統會有提示窗口,怎樣不讓它彈出這個提示窗口??????
}这种用法不规范吗,firefox究竟在哪个环节上不支持?