I have a html select list menu,when user select an option he/she is redirected to the page of choice.
for example he/she will be redirected to
http://example.com/towns/Faizabad
below is the selection menu,this acts as a jump menu.
<select name="cities">
<option value="towns/Antaliya" id="city1">Antaliya</option>
<option value="towns/Faizabad" id="city2">Faizabad</option>
</select>
I need when user(logged/anonymous) selects a city… to add attributed selected, and remember the option for several days until user changes again to another option.
I am not good with Javascript/jquery.. i think it can be achived with cookies.
Any help will be appreciated.
You can use this plug-in http://www.ashishblog.com/blog/jquery-cookie-example/ then set your cookies after cities selection