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); 

Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -