get value from dropdown jquery code example

Example 1: how to get the value of dropdown in jquery

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

Example 2: select option value jquery

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

Example 3: jquery get dropdown list selected value

$('#dropDownId').val();

Example 4: get id value of html dropdown in jquery

$('#dropDownId :selected').text();

Tags:

Misc Example