如何隐藏输入框
有2个radio选择框a1,a2,name都是a,1个输入框b,我点a1,b就显示,点a2 b就消失,如何实现啊?
------解决方案-------------------- <input type= "radio " name= "a " checked onclick= "b.style.display= ' '; "/> a1
<input type= "radio " name= "a " onclick= "b.style.display= 'none '; "/> a2
<input type= "text " name= "b " />