帮我看一下这个简单的显示不显示问题.
<select name= "typetie ">
<option value= "0 "> 普通贴 </option>
<option value= "1 "> 问答贴 </option>
< lect>
<div id= "postgold " style= "display:none "> 给分: <input name= "postgold " type= "text " size= "4 " maxlength= "4 " /> </div>
如何做到如果select value=1 则postgold的display:none变成block
请详细一点啊.
------解决方案-------------------- <select name= "typetie " onchange= "document.getElementById( 'postgold ').style.display=this.value== '1 '? 'block ': 'none ' ">