I've have a html input field like:
<input type="text" name="fieldName" onChange="alert(1)" />
onChange event does not trigger on DOM change. Is there any way to detect all changes inline as like onChange mentioned above?
I've have a html input field like:
<input type="text" name="fieldName" onChange="alert(1)" />
onChange event does not trigger on DOM change. Is there any way to detect all changes inline as like onChange mentioned above?
With textbox you should use either onkeypress or onkeyup or onkeydown instead of onchange because onchange is triggered only when the textbox is blurred.
<input type="text" name="fieldname" onkeydown="callme(this);" /> <br />
function callme(obj) {
alert(obj.name);
}