$(this) option selected jquery
$("select.country").change(function(){
var selectedCountry = $(this).children("option:selected").val();
alert("You have selected the country - " + selectedCountry);
});
4
5
var cur_value = $('option:selected',this).text();
Thank you!
5
0
Are there any code examples left?
New code examples in category Javascript