日期:2014-05-16  浏览次数:20353 次

下拉菜单很简单的问题。。。。。进来帮帮。
怎么实现当其中的一个选中时,就根据value值链接呢?   怎么写呢?   谁解决分全部给谁。
<form   name= "form1 "   method= "post "   action= " ">
<td> <div   align= "center "> 查看选项:
                <select   name= "select ">
<option   value= "/ports/portonelist "> 1 </option>
<option   value= "/ports/porttwolist "> 2 </option>
<option   value= "/ports/portthreelist "> 3 </option>
                </select>
        </div> </td>
</form>

------解决方案--------------------
<form name= "form1 " method= "post " action= " ">
<td> <div align= "center "> 查看选项:
<select name= "select " onchange= "document.location.href=this.value ">
<option value= "/ports/portonelist "> 1 </option>
<option value= "/ports/porttwolist "> 2 </option>
<option value= "/ports/portthreelist "> 3 </option>
</select>
</div> </td>
</form>