<script>
function showhide()
{
document.all.c.style.display=document.all.myradio[0].checked?"block":"none";
}
</script>
<form action=next.jsp>
<input type=radio name=myradio value=a checked onclick=showhide()>show
<input type=radio name=myradio value=b onclick=showhide()>hide
<center>
<table id=c>
<tr><td><input id=mytext1></td></tr>
<tr><td><input id=mytext2></td></tr>
</table>
</center>
function showhide()
{
document.all.c.style.display=document.all.myradio[0].checked?"block":"none";
}
</script>
<form action=next.jsp>
<input type=radio name=myradio value=a checked onclick=showhide()>show
<input type=radio name=myradio value=b onclick=showhide()>hide
<center>
<table id=c>
<tr><td><input id=mytext1></td></tr>
<tr><td><input id=mytext2></td></tr>
</table>
</center>
解决方案 »
- <input id="ID" name="ID" type="hidden" value="" /> 不能获取值
- 在CSS中定义一个DIV的position为absolute,但用脚本o.style.position读不到???
- 求一个检测图片类型和文件大小的代码,要支持FF
- 请问哪儿有时间控件的原码(精确到秒或者分),先谢了
- 怎样去掉弹出式页面的标题栏
- 有一个问题: 我用photoshop 批处理自动生成了一个生成了一个带frame的网页index.htm 和很多有序号的子网页(作用是 通过右边的网页图标
- 很久没有写js了。放个40行的管理over和out的代码.
- 如何用javascript控制excel的图表控件。
- 请大家都近来看看
- 帮帮忙
- 在iframe如何实现记录下焦点光标的位置然后再恢复?
- 有关option的js问题,如何实现?
function showhide()
{
document.all.c.style.display=document.all.myradio[1].checked?"block":"none";
}
</script>
<form action=next.jsp>
<input type=radio name=myradio value=a onclick=showhide()>hide
<input type=radio name=myradio value=b checked onclick=showhide()>show
<center>
<table id=c>
<tr><td><input id=mytext1></td></tr>
<tr><td><input id=mytext2></td></tr>
</table>
</center>
<input type=submit value=submit>
</form>