174
rated 0 times
[
175]
[
1]
/ answers: 1 / hits: 61571
/ 11 Years ago, thu, may 2, 2013, 12:00:00
I'm trying to figure out, when iterating through some list items, how to target each $(this) equivalent within nested foreach loops. Here is an example of my problem:
$('li').each(function(){
// I believe $(this) would target each li item...
$(this).children(li).each(function(){
// ... but how can I target each of these li items? Doesn't $(this) target the original loop?
});
});
More From » jquery