I am wondering if I could have a function that is triggered by either clicking on a div or pressing space bar. I can't ever remember seeing a function like this... is there a way to do it?
$('.button').click || keypress.keyCode === 32 (function() {
//do something
)};