I have some divs that i use as containers, i want to loop over them and then loop over the items in it.
so not $('.stackContainer .stackItem').each( but something like this:
// setup stacks
$('.stackContainer').each(function(containerIndex) {
//console.log($(this));
console.log(containerIndex);
$(this).('.stackItem').each(function(itemIndex) {
console.log(itemIndex);
}
});
Only then working. How is this possible?