On Click, knowing if the element clicked is a checkbox?
<p>I used to use the following to know if a clicked item was a checkbox:</p>

<pre><code>if ($(e.target).className === 'checkbox') {}
</code></pre>

<p>After upgrading to the latest version of jQuery this now returns undefined for Chrome, Safari and Firefox.</p>

<p>What is the best way to determine if a click happened on a checkbox?</p>

<p>Thanks</p>
