Feb 05
jQuery equal heights function
I couldn't find anything that was short and consice on the interwebs, so here's my equal heights function:
jQuery.fn.equalHeight = function() {
var tallest = 0;
// find tallest element
this.each(function() {
ch = $(this).height();
if(ch > tallest)
{
tallest = ch;
}
});
$(this).height(tallest);
};