js listen for chnage in date code example
Example 1: on change event html not working
onchange is only triggered when the control is blurred. Try onkeypress instead.
Example 2: addeventlistener js select item
selectId.addEventListener("change", function() {
});