According to the official documentation, this event is:
Triggered when the field is blurred, if the value has changed;
Now, how does it know if the value has changed? Is it stored somewhere? And the reason I ask: can I replicate that behaviour?
Thanks
This is resolved by the browser. You can also trigger for values changed on text inputs by attaching a handler to the onchange event:
And also in Javascript:
Of course you can replicate this behaviour. You can try it yourself here.
[Edit]
You have the onblur event, which fires every time the user leaves the control.
You could keep track of the input value, or set a flag to be accesible for both change and blur events: