See this: Sample
$(document).ready(function () {
$("#lang-from").click(function () {
$("#lang-content").slideToggle(350);
});
$("#lang-content li").click(function (e) {
e.stopPropagation();
$("#lang-content").slideUp(350);
$("#lang-from span").text($(this).text());
});
});
3
solved How to create this selector [closed]