How to iterate over two arrays in jQuery
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/617735/simultaneously-iterating-over-two-sets-of-elements-in-jquery">Simultaneously Iterating Over Two Sets of Elements in jQuery</a>  </p>
</blockquote>



<p>I have two variables:</p>

<pre><code>var $distance = $(".distance");

var $classification = $(".classification");
</code></pre>

<p>For each non-empty item of the <code>$distance</code> collection I want to check if the corresponding <code>$classification</code> item is not empty. How do I do this?</p>
