how to fetch the selected value of dropdown jquery

JavaScript
BY LOVE
$('#ddlName option:selected').val();$("select.country").change(function(){
  var selectedCountry = $(this).children("option:selected").val();
  alert("You have selected the country - " + selectedCountry);
});
Source

Also in JavaScript: