把那个表单放在一个表格里面,表格属性设置成隐藏,当点选 单选按钮时设置表格的属性为显示
<table id="tSH" style="display:none"><tr><td><form>你的表单<form></td></tr></table>
<input type="radio" id="radC" onclick="Click_this()">
Clikc_this()
{
if(radC.checked)
tSH.style.display="";
else
tSH.style.display="none";
}
<table id="tSH" style="display:none"><tr><td><form>你的表单<form></td></tr></table>
<input type="radio" id="radC" onclick="Click_this()">
Clikc_this()
{
if(radC.checked)
tSH.style.display="";
else
tSH.style.display="none";
}
比如说, 问题是 有没有电脑
⊙有 ○没有
当点有 时 就出现一个表单,列出调查内容供选择! 如果选择没有,就进入下一个页面!!
请 zhangxuenian 帮帮忙!!! 急!!!
<!--
function ShowForm(val){
document.getElementById("tbComputer").style.display=val;
}
//-->
</script>
<input type="radio" name="computer" onclick="ShowForm('')">ÓÐ
<input type="radio" name="computer" onclick="ShowForm('none')">ûÓÐ
<form action="">
<table id="tbComputer" width="400" style="display:none">
<tr>
<td>CPU</td>
<td><input type="text" name=""></td>
</tr>
<tr>
<td>ÄÚ´æ</td>
<td><input type="text" name=""></td>
</tr>
<tr>
<td></td>
<td><input type="submit"></td>
</tr>
</table>
</form>