title: Combine hover and click functions (jQuery)?
body: <p>Can hover and click functions be combined into one, so for example:</p>
  
  <p>click:</p>
  
  <pre><code>$('#target').click(function() {
    // common operation
  });
  </code></pre>
  
  <p>hover:</p>
  
  <pre><code>$('#target').hover(function () {
      // common operation
  });
  </code></pre>
  
  <p>can they be combined into one function? </p>
  
  <p>Thanks!</p>