Possible Duplicate:
Simultaneously Iterating Over Two Sets of Elements in jQuery
I have two variables:
var $distance = $(".distance");
var $classification = $(".classification");
For each non-empty item of the $distance collection I want to check if the corresponding $classification item is not empty. How do I do this?
The question omits almost all key details, but it does sound like you want to do a ‘zip’ operation, like in this answer.
In this case, depending on how your HTML was laid out, something like this should work: