I think in 2018 it's better to use the input
event.
-
As the WHATWG Spec describes (https://html.spec.whatwg.org/multipage/indices.html#event-input-input):
Fired at controls when the user changes the value (see also
the change event)
-
Here's an example of how to use it: