So erhalten Sie den ausgewählten Text von Dropdown in JQuery
BY LOVE
$("#Id option:selected").text()
Precious Pigeon
BY LOVE
$("#Id option:selected").text()
$('.id_100 option[value=val2]').attr('selected','selected');
$( "#myselect option:selected" ).val();
$("select.country").change(function(){
var selectedCountry = $(this).children("option:selected").val();
alert("You have selected the country - " + selectedCountry);
});
$('select option[value=8272]').attr('selected', '');
$(document).ready(function(){
$("select.country").change(function(){
var selectedCountry = $(this).children("option:selected").val();
alert("You have selected the country - " + selectedCountry);
});