jQuery - calculate max widget height
function maxHeight(selected){ var current = 0, max = 0; $(selected).each(function(){ current = $(this).height(); max = Math.max(current, max); }); $(selected).height(max); }