Posted almost 4 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.

By refactoring problematic code and creating automated tests, makandra can vastly improve the maintainability of your Rails application.

Owner of this card:

Avatar
Henning Koch
Last edit:
over 3 years ago
by Henning Koch
Keywords:
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