I would like to create a click event that will work when two different items are clicked. 
Is there a way to do this?

For example, normally what I'd do is this:

```
<a id="link1" onclick="doSomething()">link1</a>
<a id="link2" onclick="doSomething()">link2</a>

```

But what I would like to know is whether there is any event overloading of sorts, perhaps like:

```
<script>
$("#link1", "#link2").click(function () { 
 alert('doSomething');

 });
</script>

```

Thanks