jquery - when URL SET SELECTED in select option -
guru!
i have url:
/montazh_form/#slide1 /montazh_form/#slide2 /montazh_form/#slide3
when enter site first links, select option should selected value in code. , id in url.
<option value="#slide1" selected>city_1</option> <option value="#slide2">city_2</option> <option value="#slide3">city_3</option>
thanks!
only if link's of kind - montazh_form/#slide1
(no other #)
$("#yourselectid").val(location.hash);