onchange get new value code example
Example 1: .on change get value
$('select').on('change', function() {
alert( this.value );
});
Example 2: javascript input onchange get value
var element = document.getElementById("myInput");
element.onchange = function() {
console.log(element.value);
}