I think this is a pretty straightforward problem but...
var outerHeight = $(\'.profile\').outerHeight(); $(\"#total-height\").text(outerHeight + \'px\');
Loop through each matching element and add up the outerheights:
var outerHeight = 0; $('.profile').each(function() { outerHeight += $(this).outerHeight(); }); $("#total-height").text(outerHeight + 'px');