Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Equalizer
function equalizeHeight(watch, target) {
var maxHeight = -1;
$(watch).each(function () {
maxHeight = maxHeight > $(this).outerHeight() ? maxHeight : $(this).outerHeight();
});
$(target).each(function () {
$(this).outerHeight(maxHeight);
});
}
// Example usage
equalizeHeight('.contact-details > li', '.panel');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.