I am trying to navigate to different jsp page on the onchange event of a dropdown list...
This is my code
<%@page import="java.util.*"%>
<html>
<head>
<title>Student Registration Form</title>
<style type="text/css">
h3{font-family: Calibri; font-size: 22pt; font-style: normal; font-weight: bold; color:SlateBlue;
text-align: center; text-decoration: underline }
table{font-family: Calibri; color:white; font-size: 11pt; font-style: normal;
text-align:; background-color: SlateBlue; border-collapse: collapse; border: 2px solid navy}
table.inner{border: 0px}
</style>
</head>
<body>
<h3>Select Product</h3>
<form action="retrieve_product" method="POST">
<table align="center" cellpadding = "10">
<tr>
<td>Select product to update</td>
<td>
<select name="category_list" onchange="Test.jsp">
<option>Option1</option>
<option>Option2</option>
</select>
</td>
</tr>
<!----- Submit and Reset ------------------------------------------------->
<tr>
<td colspan="2" align="center">
<input type="submit" name="UpdateProduct" value="Update">
<input type="reset" value="Reset">
</td>
</tr>
</table>
</form>
</body>
</html>
I tried all the events onclick, onchange, onfocus for a dropdown list but nothing seems to be working..If I am using the wrong events please suggest me the right one to navigate to a different page........