怎样用javascript实现这样的功能??[求助]

页面上有三个单选按钮,分别是radio1,radio2,radio3我想实现这样的功能:

若选中radio1,在他们下方出现一个名为text1的文本框,
若选中radio2,在他们下方出现两个名字分别为text2和text3的文本框
//text1与text2text3不共存,要么只有text1,要么只有text2和text3
若选中radio3,页面跳转到其它页面,
会做的帮个忙,谢谢诸位大哥了!!!!

---------------------------------------------------------------

用的属性方法包含:
style.display
window.location
---------------------------------------------------------------

若点击radio1,则令a.style.display="",b.style.display="none"

反之点击radio2,则令b.style.display="",a.style.display="none"

其中

1<table id="a">   
2text1   
3</table>
1<table id="b">   
2text2,text3   
3</table>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus