Ver originalvar ids = [];$('.right').each(function(key, element){ ids.push($(element).parent().attr('id'));});