为什么我点击第二个radio时候,那两个文本框没有出现啊??
<html>
<head>
<title>
test
</title>
</head>
<body bgcolor="white">
<input type="radio" name="select" id="selectRadio" onclick="change()"/>
<input name="bookNum" type="text" id="bookNum" style="display:none"/>
<input name="prMoney" type="text" id="prMoney" style="display:none"/>
<input type="radio" name="select" id="selectRadio" onclick="change()"/>
<input name="bookNum" type="text" id="bookNum" style="display:none"/>
<input name="prMoney" type="text" id="prMoney" style="display:none"/>
</script>
<script language="javascript">
function change()
{
if (document.getElementById("selectRadio").checked)
{
document.getElementById("bookNum").style.display = "inline";
document.getElementById("prMoney").style.display = "inline";
document.getElementById("selectRadio").checked = true;
}
else
{
document.getElementById("bookNum").style.display = "none";
document.getElementById("prMoney").style.display = "none";
document.getElementById("selectRadio").checked = false;
}
}
</script>
</body>
</html>