Simple plugin to equalize the heights of selected elements
// stolen from http://api.jquery.com/map/ | |
// 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