jquery - which DOM selection method is better to use
<p>Which is better to use and why?</p>

<pre><code>if ($(target).parents('div#test').length) {
</code></pre>

<p>or</p>

<pre><code>var target = $(evt.target); 
if (target.parents('div#test').length){
</code></pre>
