title: JQuery one click event for multiple element events
body: <p>My question is related to this one:
  <a href="https://stackoverflow.com/questions/1313373/jquery-same-click-event-for-multiple-elements">jQuery same click event for multiple elements</a></p>
  
  <p>However, when I do:</p>
  
  <pre><code>$('.class1, .class2').click(function() {
     some_function();
  });
  </code></pre>
  
  <p>I always use the same function with the same object. What if I wanted to consolidate the following two statements for instance:</p>
  
  <pre><code>$(".class1").click(function () {
    $(".classer1").slideToggle("slow");
  });
  
  $(".class2").click(function () {
    $(".classer2").slideToggle("slow");
  });
  </code></pre>
  
  <p>They reference a different object for each - can I even consolidate this?</p>
  
  <p>Thanks,
  Oliver</p>