#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# event-valuechange Module

Defined in: `event-valuechange/js/event-valuechange.js:18`

Adds a synthetic `valuechange` event that fires when the `value` property of an `<input>` or `<textarea>` node changes as a result of a keystroke, mouse operation, or input method editor (IME) input event.

Usage:

    YUI().use('event-valuechange', function (Y) {
        Y.one('#my-input').on('valuechange', function (e) {
            Y.log('previous value: ' + e.prevVal);
            Y.log('new value: ' + e.newVal);
        });
    });

This module provides the following classes:

- ValueChange