webshim
webshim copied to clipboard
Change event is only triggered on blur
I have a change handler wired up to a number input. However, the handler is only triggered when focus leaves the input. Any ideas?
Yes, please use the input event, instead:
$('input[type="number"]').bind('input', function(e){
console.log($.prop(this, 'value'));
});
That did the trick. Thanks.
Change event is not triggered if keypress/keydown/mousewheel is used. Need to implement ui with commit action.