I m adding DropDown in jsp page.  

and m trying to redirect a page exact after index change without any button click.  

How can i add it to jsp page?

```
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
$(function(){
      $('com').bind('change', function () {
          var value = $(this).val();
          if(value==1) window.location = "servlet1?id=1";
if(value==2)window.location = "servlet1?id=2";
return false;
});
});
</script>
<body>
<select id="com">
<option></option>
<option value="1">Link1</option>
<option value="2">Link2</option>
</select></body>

```

Not working, is anything missing , plz 

When i change index then i want to redirect to corresponding link/page.