jQuery obtenir la valeur de l'option sélectionnée
$("select.your-select").change(function(){
$(this).children("option:selected").val();
});
noqta.tn
$("select.your-select").change(function(){
$(this).children("option:selected").val();
});
$( "#myselect option:selected" ).text();
$("#id option:selected").text();
$('.id_100 option[value=val2]').attr('selected','selected');
$(document).ready(function(){
$("select.country").change(function(){
var selectedCountry = $(this).children("option:selected").val();
alert("You have selected the country - " + selectedCountry);
});
let payment_type = $("#olca_form_submit select[name='payment_type']")
.find(":selected")
.val();