abc.html
a.jsp
<form id="form" action="a.jsp">
<select name="sel" onChange="submit();">
<option value="a">a
<option value="b">b
<option value="c">c
</select>
</form>
<script type="text/javascript">
function submit()
{
document.getElementById("form").submit();
}
</script>
<%
String str=request.getParameter("sel");
out.print(str);
沒有留言:
張貼留言