I'm trying to hide all the buttons (or any other element I choose) by pressing the right arrow on my keyboard. Anyone know whats wrong?
$("body").keyPress(function(key){
if (key.which == 39){
$("button").hide();
}
});
haha wow thanks