<select name="lang" id="lang">
<option value="/">Русский</option>
<option class="eng" value="/en/main">English</option>
</select>
<script>
$(document).ready(function () {
var lang = document.getElementById("lang");
lang.onchange = function () {
window.location =
"https://studyintomsk.ru" +
lang.options[lang.options.selectedIndex].value;
};
});
</script>
$(document).ready(function(){
$('.language .head').click(function() {
$(this).closest('.language').find('ul').stop().slideToggle();
});
});
<div class="language">
<span class="head">Ru</span>
<ul>
<li><a href="http://exemple.com/">Ru</a></li>
<li><a href="http://exemple.com/en/">En</a></li>
</ul>
</div>
.language {
display: inline-block;
position: relative;
}
content: '';
width: 0;
height: 0;
border: 5px solid transparent;
border-top-color: transparent;
border-top-style: solid;
border-top-width: 5px;
border-bottom-color: transparent;
border-bottom-style: solid;
border-bottom-width: 5px;
border-bottom: none;
border-top: 5px solid #FFF;
position: absolute;
right: 5px;
top: 50%;
transform: translateY(-50%);
}
.language .head {
padding: 5px 25px 5px 15px;
color: #FFF;
background: #000;
}
.language ul {
list-style-type: none;
padding: 0;
margin: 0;
display: none;
position: absolute;
top: 100%;
left: 0;
width: 100%;
background: #000;
}
.language ul li a {
display: block;
color: #FFF;
padding: 5px 15px;
}