在jsp页面中,
<select name="sel" id="sel">
    <option value="<%=rs.getString("id")%>"><%=rs.getString("name"))%></option>
  </select>
<select name="sel1" id="sel1">
    <option>********</option>
  </select>在当前页面如何取到value的值就是那个id,并输出,因为这个页面有两个列表,
要选这中个id传给一个函数,这个函数在数据库查询出值然后在另一个列表显示出,要怎么做呢 ,,大家帮帮忙,急呀~~~

解决方案 »

  1.   

    联动菜单网上有很多例子
    你看看这个
    http://access911.net/getnews/doc1.asp?mode=a&aid=4854482
      

  2.   

    现在比较流行的是Ajax实现联动菜单,无页面刷新动作
      

  3.   

    http://hi.baidu.com/onlinewan/blog/item/5a0dd81b6c8b50d5ad6e75f6.html
    http://blog.csdn.net/ShowWin/archive/2006/09/26/1287864.aspx这个比较经典,不过你要自己改改代码哦
    http://www.mydw.cn/tech/9/717.html慢慢琢磨吧