选中radio时,改变textarea或input框中的值
[HTML] 纯文本查看 复制代码 <html>
<head>
<title>选中radio时,改变textarea或input框中的值</title>
<script language="javascript" type="text/javascript">
function showCheckValue(checkboxcontrol)
{
document.getElementById('FText').value = checkboxcontrol.value;
}
</script>
</head>
<body>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td><INPUT id="Answer1"type="radio" value="A" name="Answer1">1</td>
</tr>
<tr>
<td><INPUT id="Answer2" type="radio" value="B" name="Answer1">2</td>
</tr>
<tr>
<td><INPUT id="Answer3" type="radio" value="C" name="Answer1">3</td>
</tr>
<tr>
<td><INPUT id="Answer4" type="radio" value="D" name="Answer1">4
<input type="text" name="FText" id="FText">
</td>
</tr>
</table>
</body>
</html>
|