I have this form where you enter something in the input field and i have added an onchange event listener to throw an alert when the value is changed. Apparently the code works in Chrome but in Firefox it doesnt work if we re-enter the same text.
Example:
1st try –> Enters the text -> Hello. (Alerts as Text changed).
2nd try –> Enters the text -> Hello. (again) (on Change event isnt called).
Can anyone tell me why this is happening ? Thank you for your time in advance :).
Here is a jsfiddle.
You may handle blur event. It would be fired even if value is the same.