select on change value jquery code example
Example 1: select onchange get value jquery
$('#the_id_select').on('change', function() {
alert( this.value );
});
$("#the_id_select").change(function(){
alert( this.value );
});
Example 2: on change jquery
$("input").change(function(){
alert("The text has been changed.");
});
Example 3: jQuery change select value
$("#mySelectElementID").val("my_new_value");
Example 4: jquery on element change
$('mydiv').bind('DOMSubtreeModified', function () {
console.log('changed');
});