API Docs for: 3.8.0

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: