onInputChange vs onChange

myForm.attachEvent("onInputChange",function(name,val,inp){ logEvent("onInputChange: "+name+", "+val+"<br>") myForm.setItemValue(name); });

[code] myForm.attachEvent(“onChange”, function (name, value){
logEvent(“onInputChange: “+name+”, “+value+”


target {type: "calendar", name: "birthday", value: "1980-05-27", label: "Birthday", dateFormat: "%Y-%m-%d", calendarPosition: "right"},
in first case calendar value is changed, in second nothing happens ?

onChange used because forms has checkboxes or need state value

onChange fires when data in some input was changed
onInputChange fires when data in an input was changed and the cursor is still in this input
So behavior will depend on focus state