jquery onchange selected option value code example
Example 1: select onchange get value jquery
$('#the_id_select').on('change', function() {
alert( this.value );
});
//or
$("#the_id_select").change(function(){
alert( this.value );
});
Example 2: jQuery change select value
$("#mySelectElementID").val("my_new_value"); //change selected option/value with jQuery