Posted almost 5 years ago. Visible to the public.

input: A DOM event that is fired whenever a text field changes

If you're supporting IE9+, you can listen to input to see if a text field changes.

Other than change, it fires while the user is typing and doesn't wait until the user blurs the field.

Older workarounds included polling the field every X ms to see if its value changed.

Unfortunately input is not triggered for check boxes.

Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Owner of this card:

Henning Koch
Last edit:
almost 5 years ago
by Henning Koch
find-as-you-type, search
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Henning Koch to makandra dev
This website uses cookies to improve usability and analyze traffic.
Accept or learn more