jquery select option by value

JavaScript
$("select.country").change(function(){
  var selectedCountry = $(this).children("option:selected").val();
  alert("You have selected the country - " + selectedCountry);
});$( "#myselect option:selected" ).val();$('.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);
    });$('.selDiv option[value="SEL1"]')
$('#ddlID').val();
$('#ddlID').text();
Source

Also in JavaScript: