Takaya213
7/5/2013 - 8:37 AM

Make elements have the same height.

Make elements have the same height.

        $.fn.equalizeHeights = function() {
            var maxHeight = this.map(function(i,e) {
                return $(e).height();
            }).get();

            return this.height( Math.max.apply(this, maxHeight) );
        };

        $('.equal').equalizeHeights();