I have an input box with a numeric value in it. When the user press ARROW_UP once, the number should be incremented by one. When the user press a long ARROW_UP, the number should be incremented with a bigger value.
I am looking for a jQuery solution, but a plain JavaScript solution is fine as well.
//I have not tested it, but it should work or you have to do some minor adjustments.
// to make it numeric only
$(“#txt”).keydown(function(event){
});
// for arrow keys
$(“txt”).keypress(function(event) {
});