When do we compare DOM elements in JQuery
<pre><code>$('body &gt; div').each(function() {
...
});
</code></pre>

<p>What functionality does comparing <code>body &gt; div</code> provide?</p>

<p>This is a part of answer provided to this question
<a href="http://stackoverflow.com/questions/1231283/comparing-dom-elements-with-jquery">Comparing DOM elements with jQuery</a>
.
I want to do similar thing but I am not able to understand the functionality provided by comparing two DOM objects.</p>
