I think this is a pretty straightforward problem but...
var outerHeight = $(\'.profile\').outerHeight(); $(\"#total-height\").text(outerHeight + \'px\');
var total = 0; $('.profile').each(function() { total += $(this).outerHeight(); }); $("#total-height").text(total + 'px');