I have two arrays: menu_items
and clones
, and I have two nested each() functions.
$(menu_items).each(function() {
$(clones).each(function() {
if ($(this).attr("href") == ...) {
<do sth>
}
});
});
I want to check if href
from item from second loop (clones) is equal to href
from item from first loop (menu_items).
Checking items from clones
is easy: $(this).attr("href")
. But what with first loop menu_items
? $(this).$(this).attr("href")
? I guess not :( Please help.