title: retain dropdown selection on refresh
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8737025/retaining-selected-dropdown-option-on-postback">retaining selected dropdown option on postback</a>  </p>
  </blockquote>
  
  
  
  <p>I have a dropdown when user selects the option, the value is passed on to the same url as querystring refreshing the page. after the page refreshes i wanna retain the selected value so user knows what was selected. How do i do this in jquery?</p>
  
  <pre><code>&lt;select id="hospitalDropDown" onchange="window.open(this.options[this.selectedIndex].value,'_top')"&gt; 
          &lt;option value="http://mysite.com/events/Pages/default1.aspx"&gt;All Hospitals&lt;/option&gt;
    &lt;option value="http://mysite.com/events/Pages/default1.aspx?hos=Dyer"&gt;Dyer&lt;/option&gt;
    &lt;option value="http://mysite.com/events/Pages/default1.aspx?hos=Carmel"&gt;Carmel&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Basically the logic is trap the selection in some variable and pass it as selected equals true but i am not being able to do it in jquery..I don't have acccess to server side code..either</p>