HTML5 <input type=“date”> - onChange Event
Is possible to detect in event onChange for <input type=“date”> , when user using graphical calendar and arrows or using keybord number ? I am only interested in VanillaJS solutions. Something like this? function handler(e){ alert(e.target.value); } <input type="date" id="dt" onchange="handler(event);"/> function elog(ev, object) { console.log(object.id + " - " + ev + ": " + object.value); } <label for="dt1">Date not initially set: </label> <input type="date" id="dt1" oninput="elog('input',this);return false;" onchange="elog('change',this);return false;" onblur="elog('blur',this);return false;