increment - increase number when I press arrow key on keyboard with javascript -


i have textbox has numeric value. want keep increasing numeric value while im pressing , holding of arrow keys. know how if pressing 1 time. increased 1 only. if want keep increasing value while i'm holding arrow keys. how that?

thanks

there's small jquery plugin doing this: https://github.com/nakupanda/number-updown

usages:

$('#simplest').updown(); 

$('#step').updown({ step: 10, shiftstep: 100 });

$('#minmax').updown({ min: -10, max: 10 });

$('#minmaxcircle').updown({ min: -10, max: 10, circle: true });

view live demo here: http://jsfiddle.net/xctah/embedded/result/

keyboard , mousewheel events supporte


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -