Calculate total width of Children with jQuery
20. June 2011
Found this great jQuery snippet over at stackoverflow on how to calculate the total width of all children!
var width = 0;
$('.fileGroup .file').each(function() {
width += $(this).outerWidth( true );
});
$('.fileGroup').css('width', width + 0);