jQuery KeyUp and Click
Well you can do:
$(document).keydown(function(objEvent) {
if (objEvent.keyCode == 13) { //clicked enter
$('#search').click(); //do click
}
})
$("#search").click(function(e){/*click fn*/})
Will run the click on enter press
$('#foo').bind('click keyup', function(event) {
...
You'll have to add some logic, as the event type changes, but it should work with enough if
blocks.