My intention was to capture for the keystroke and increment and decrement a particular test box value by 1 or -1.The following is my code.
Expand|Select|Wrap|Line Numbers
- var y=x.value
- var VK_UP = 38;
- var VK_DOWN = 40;
- switch (e.keyCode){
- case VK_UP : { y++;
- break}
- case VK_DOWN : {y--;
- break}
- default : {return};
- }
- x.value=y
- }
Thanks
Lal