在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传给一个函数,这个函数在数据库查询出值然后在另一个列表显示出,要怎么做呢 ,,大家帮帮忙,急呀~~~
<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传给一个函数,这个函数在数据库查询出值然后在另一个列表显示出,要怎么做呢 ,,大家帮帮忙,急呀~~~
你看看这个
http://access911.net/getnews/doc1.asp?mode=a&aid=4854482
http://blog.csdn.net/ShowWin/archive/2006/09/26/1287864.aspx这个比较经典,不过你要自己改改代码哦
http://www.mydw.cn/tech/9/717.html慢慢琢磨吧