保定市电气招聘:请教高手ASP问题

来源:百度文库 编辑:中科新闻网 时间:2024/05/05 02:20:17
怎样用radio标签控制文本框在网页中是否出现?

<script language="javascript">
function change(id)
{
document.getElementById("t1").style.display = id
}
</script>
<body>
<input type="radio" name="radio" onclick="change('');" />
显示<br />
<input type="radio" name="radio" onclick="change('none');" />
不显示
<table border="0" id="t1">
<tr>
<td>文本框<input name="text" type="text" id="text" /></td>
</tr>
</table>
</body>