how to fetch the selected value of dropdown jquery
snippet in javascript

how to fetch the selected value of dropdown jquery

user4849

BY LOVE
$('#ddlName option:selected').val();

select option value jquery

user1894

$("select.country").change(function(){
  var selectedCountry = $(this).children("option:selected").val();
  alert("You have selected the country - " + selectedCountry);
});