[jQuery] several events to same function

[jQuery] several events to same function


Hi!
I have a function that i want to run on both the click and the keyup
event. The problem is: how do I write this?
I dont want to make a separate function of the "do someting" part that
i have to call on two different places.
$("a").click and keyup(function(){
do something
}