title: How do I define the clicked element as being $(this)?
body: <p>I want to add the <code>active</code> class only to the <code>.element</code> that gets a click.</p>
  <p>The problem is, if I have many elements with the <code>element</code> class, all of them will get the <code>active</code> class.</p>
  <p>Here's what I've tried:</p>
  <pre><code>$(document).mousedown(function(event) {
      if ($(event.target).closest('.element').length) {
          $(this).addClass('active');
      }
  });
  </code></pre>
  <p>It doesn't work, for the reason that <code>$(this)</code> is not defined.</p>
  <p>How do I define that the clicked <code>'.element'</code> is <code>$(this)</code>?</p>