How do I retain whatever was selected from the dropdown even after page refresh so user knows what he/she selected using jquery? or javascript?
Try this:
Select Hospital All Hospitals Dyer Carmel $(document).ready(function(){ var value = window.location.href.match(/[?&]hos=([^]+)/) || []; $('#hospitalDropDown').val(value[1]); });