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.
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: