jquery - how could I bind the same things to 2 diffrent classes?
<p>I have got:</p>

<pre><code>$('.class1').click(function(){   //do
things on $(this) element })
</code></pre>

<p>and</p>

<pre><code>$('.class2').click(function(){
  //do things on $(this) element
})
</code></pre>

<p>things to do in each of that is the same, but when I did:</p>

<pre><code>$('.class2').click(function(){
   $('.class1').click();
})
</code></pre>

<p>... it was disaster, that actived each element with <code>class1</code>.
Is there any similar solution to above one?</p>
