I forgot to mention: don't get freaked out by the code... basically what you need is:
$().keydown(function(e) { if (e.keyCode === 40) { // down cursor key was pressed } else if (e.keyCode === 38) { // up cursor key was pressed } });
I forgot to mention: don't get freaked out by the code... basically what you need is:
$().keydown(function(e) { if (e.keyCode === 40) { // down cursor key was pressed } else if (e.keyCode === 38) { // up cursor key was pressed } });