Version 3.18.1

event-valuechange Module

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


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

This module provides the following classes: