Test case for jQuery Ticket 8169
change event chrome number input
by jitter
HTML
<script src="https://getfirebug.com/firebug-lite-debug.js"></script>
<input type="number" id="nr" value="1" />
JavaScript
var i = document.getElementById( "nr" );
i.onchange = function(e) {
console.log( e.type, this.value );
};
/*
You can try the new input event defined in HTML
http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#common-event-behaviors
But be aware that this isn't an event supported by jQuery and thus might break in subtle ways across browsers
especially older versions
i.oninput = function(e) {
console.log( e.type, this.value ); //would log every change while scrolling not just the "final" change when blurring
};
*/