Obtenir l'option sélectionnée par SMS jQuery
$('#id option:selected').text()
Black Tailed Deer
$('#id option:selected').text()
$( "#myselect option:selected" ).text();
$( "#myselect option:selected" ).val();
<select id="menu">
<option value="1">Opción 1</option>
<option value="2">Opción 2</option>
<option value="3">Opción 3</option>
</select>
<script >
$(function () {
$("#menu option[value='2']").attr("selected", true);
});
</script>
$("select.country").change(function(){
var selectedCountry = $(this).children("option:selected").val();
alert("You have selected the country - " + selectedCountry);
});
$('select option[value=8272]').attr('selected', '');