我根据SELECT的值来控制一个 TEXT的有无?
<select name= "test ">
<option value= "1 "> 显示 </option>
<option value= "2 "> 隐藏 </option>
<input type= "text " name= "display ">
谢谢高手帮忙...
------解决方案--------------------------------------------------------
$get(id).style.display= 'none '
------解决方案--------------------------------------------------------
<select name= "test " id= "test " onclick= "showInput(this) ">
...
<input type= "text " id= "display "/>
function showInput(sel)
{
if(sel.value== "1 ")
{
document.getElementById( "display ").style.display= "block ";
}
else
{
document.getElementById( "display ").style.display= "none ";
}
}