I have successfully implemented the scrollTo jQuery plugin which scrolls to the next div with the class \"new\" when a link is clicked. However, I would also like to be able
You need to capture the keypress event and decide which keycode was pressed
$(document).keypress(function(e) { switch(e.keyCode) { case 37: //left arrow pressed break; case 39: //right arrow pressed break; } });