Skip to content

Instantly share code, notes, and snippets.

@bmihelac
Last active October 7, 2015 21:28
Show Gist options
  • Save bmihelac/3227952 to your computer and use it in GitHub Desktop.
Save bmihelac/3227952 to your computer and use it in GitHub Desktop.
jQuery apply equal height to given elements
jQuery.fn.equalHeight = function() {
var h = Math.max.apply(Math, this.map(function() {return $(this).height();}).get());
this.height(h);
return this;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment