title: jQuery same click event for multiple elements
body: <p>Is there any way to execute same code for different elements on the page?</p>
  
  <pre><code>$('.class1').click(function() {
     some_function();
  });
  
  $('.class2').click(function() {
     some_function();
  });
  </code></pre>
  
  <p>instead to do something like:</p>
  
  <pre><code>$('.class1').$('.class2').click(function() {
     some_function();
  });
  </code></pre>
  
  <p>Thanks</p>