input type get value onchange event code example
Example: javascript input onchange get value
var element = document.getElementById("myInput");
element.onchange = function() {
console.log(element.value);
}
var element = document.getElementById("myInput");
element.onchange = function() {
console.log(element.value);
}