how to get value of an onchange for that function 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);
}