Multiple click events on one element
<p><a href="http://jsfiddle.net/rHVcX/1/" rel="nofollow">http://jsfiddle.net/rHVcX/1/</a></p>

<p>Is it possible to have multiple click events on one elements, when using different selectors?</p>

<pre><code>&lt;button id="test" class="testclass"&gt;test&lt;/button&gt;
&lt;button id="test2" class="testclass2"&gt;test 2&lt;/button&gt;

//only B
$('.testclass')[0].click(function(){alert('A');});
$('#test').click(function(){alert('B');});

// A and B
$('#test2').click(function(){alert('A2');});
$('#test2').click(function(){alert('B2');});
</code></pre>
