Expand|Select|Wrap|Line Numbers
- <select id="selLang">
- <option value="/en" >english</option>
- <option value="/fr" >french</option>
- </select>
I want to set the selected option to be the selected option which is in the top of the combo box- within the view.
so my question is just how can i do it?
or maybe i have to create a cookie? and if so -how do i do t-h-a-t?
actualy i have this:
Expand|Select|Wrap|Line Numbers
- var urlString = window.location.host;
- var Lang = $("#selLang")[0].value;
- window.location = "http://" + urlString + Lang;
Perhaps it's a silly question, but i'm quite new in this region.
Thanks in advance!