Reputation: 1364
As far as I know, I can only use the change event for it, but it's only triggered when I stop increasing/decreasing the number input, not on each and every step taken.
Is there any way to do that? On native javascript or jQuery.
Upvotes: 0
Views: 74
Reputation: 74420
Use input event: (because anyway support is better than the one for input type number)
$('input[type=number]').on('input', function(){
console.log(this.value);
});
Upvotes: 4