how do I use jQuery to fire one common handler for more than one different events triggers?
<p>On my web page I have two hyper links which do almost similar thing when an onclick event happens. Just to finish up I copy pasted the code twice and changed the event targets, so I essentially have code similar to this</p>

<pre><code>$('#editprofilebutton').click(function(){/*do some magical stuff here*/});
$('#changepassbutton').click(function(){/*do some magical stuff here*/});
</code></pre>

<p>How can I  remove this duplication and have some thing like <code>$('#editprofilebutton' or '#changepassbutton').click(function(){/*do some magical stuff here*/});</code>?</p>
