title: Check which element has been clicked with jQuery
body: <p>I am trying to use an 'if' statement to determine which element was clicked.</p>
  
  <p>Basically I am trying to code something along the lines of:</p>
  
  <pre><code>if (the element clicked is '#news_gallery li .over') {
      var article = $('#news-article .news-article');
  } else if (the element clicked is '#work_gallery li .over') {
      var article = $('#work-article .work-article');
  } else if (the element clicked is '#search-item li') {
      var article = $('#search-item .search-article');
  };
  </code></pre>
  
  <p>What is the proper jQuery syntax for this? Many thanks in advance.</p>