I have the loop below:
var myArray = [];
$(this).children('a').each(function () {
myArray.push($(this).attr('href'));
});
which fires 3 times. When I look inside that array, I see that there is only one (last added) item. Why ?