请教高手ASP问题

来源:百度知道 编辑:UC知道 时间:2024/04/26 21:05:13
怎样用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>