Here is the HTML code
<select id="language">
<option value="en">english</option>
<option value="fr">french</option>
<option value="gr">german</option>
</select>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<div>
<div id="related_en_content">
english text
</div>
<div id="related_fr_content">
french text
</div>
<div id="related_gr_content">
german text
</div>
</div>
<script>
$("#language").on("change", function() {
id = "related_" + $(this).val() + "_content";
$("#" + id).show().siblings().hide()
})
</script>
<select id="language" onchange:"javascript:handle_language(this)">
<option value="en">english</option>
<option value="fr">french</option>
<option value="gr">german</option>
</select>
<script>
function handle_language(what){
document.getElementById('related_en_content').style.visibility='hidden';
document.getElementById('related_fr_content').style.visibility='hidden';
document.getElementById('related_gr_content').style.visibility='hidden';
if(what.value=="en"){
document.getElementById('related_en_content').style.visibility='visible';
}
if(what.value=="fr"){
document.getElementById('related_fr_content').style.visibility='visible';
}
if(what.value=="gr"){
document.getElementById('related_gr_content').style.visibility='visible';
}
}
</script>
<div id="related_en_content">
english text
</div>
<div id="related_fr_content">
french text
</div>
<div id="related_gr_content">
german text
</div>
$(document).ready(function(){
$("#language").change(function(e){
$('[id^="related"]')
.not($('#related_'+$(this).val()+'_content'))
.hide();
$('#related_'+$(this).val()+'_content').show()
});
});
Example.
$('[id^="related"]').not(':first').hide();
$("#language").on('change', function() {
$("#related_"+this.value+"_content").show().siblings('[id^="related"]').hide();
});
FIDDLE