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
$('#editprofilebutton').click(function(){/*do some magical stuff here*/});
$('#changepassbutton').click(function(){/*do some magical stuff here*/});
How can I remove this duplication and have some thing like $('#editprofilebutton' or '#changepassbutton').click(function(){/*do some magical stuff here*/});?
Docs: Multiple Selector