API Docs for: 3.5.1

event-valuechange Module

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.


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: