Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple plugin to equalize the heights of selected elements
// stolen from
// usage: $('div').equalizeHeights();
$.fn.equalizeHeights = function(){
return this.height( Math.max.apply( this, $(this).map(function(i,e){ return $(e).height() }).get() ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment