title: How to get selected value from select tag using javascript and go to another page using that value
body: <p>I have a  select tag where it contains some values, as shown below:</p>
  
  <pre><code>         &lt;select id="menu" SIZE=6 onChange="go()"&gt;
            &lt;option value=""&gt;Select city&lt;/option&gt;
      &lt;option value="delhi" &gt;delhi&lt;/option&gt;  
      &lt;option value="kolkata" &gt;kolkata&lt;/option&gt;  
      &lt;option value="mumbai" &gt;mumbai&lt;/option&gt;
             &lt;/select&gt;
  </code></pre>
  
  <p>Now i am using below script for this, where it get the selected value from the drop down,</p>
  
  <pre><code>      &lt;script&gt;
          function go(){
  
  var sel = document.getElementById('menu');
         var sv = sel.options[sel.selectedIndex].value;
  
                //  here i  need to make a specific link using this selected drop down value
  
  
            }
  
            &lt;/script&gt;
  </code></pre>
  
  <p>I just need to know how can i make use of this selected value and go to specific link like </p>
  
  <pre><code>       window.location.href='getCityDetails.jsp?c=sv'; // this is not working properly 
  </code></pre>
  
  <p>Can anyone suggest me best solution for this. </p>