I think this is a pretty straightforward problem but…
var outerHeight = $('.profile').outerHeight();
$("#total-height").text(outerHeight + 'px');
Right now the var outerHeight gives me the outerHeight of only the first element with the class .profile.
How can I get the sum of the outerHeights of all elements with the class .profile?
Loop through each matching element and add up the outerheights: