日期:2014-05-16 浏览次数:20363 次
<select name="type" id="type" style=" color:#000; height:22px; width:110px;"> <option value="1">选项一</option> <option value="2">选项一</option> <option value="3">手动输入</option> </select>
<select name="type" id="type" style=" color:#000; height:22px; width:110px;" onchange="showInput(this)"> <option value="1">选项一</option> <option value="2">选项一</option> <option value="3">手动输入</option> </select> <input type="text" name="input" id="input" style="visibility:hidden;"/> <script type="text/javascript"> function showInput(select) { if(select.options[select.selectedIndex].value == 3) document.getElementById('input').style.visibility = 'visible'; else document.getElementById('input').style.visibility = 'hidden'; } </script>