I have a page (for examle, localhost/catalog/) with select element on it.
<select name="type" id="typeSel">
<option value="2" selected="selected" >Type 1</option>
<option value="1" >Type 2</option>
</select>
Also there is base tag in the page:
<base href="http://localhost/" />
I want to change page url when user click on list element. This code works in all browsers, except in Opera 10.63.
$('#typeSel').change(function() { window.location.href = window.location.pathname +"?type="+$("#typeSel").val(); });
Opera redirects browser to localhost/catalog/?type=n when there is no base tag, and and to localhost/# when base tag is used.
Could you please help me with this problem?