Skip to content

Instantly share code, notes, and snippets.

@Stasevi4
Created November 11, 2014 23:57
Show Gist options
  • Save Stasevi4/250ff8aa8e975b7dc477 to your computer and use it in GitHub Desktop.
Save Stasevi4/250ff8aa8e975b7dc477 to your computer and use it in GitHub Desktop.
Resize all selected block to same size
(function ($) {
$.fn.blockresize = function () {
var height = 0;
this.each(function () {
c_height = parseInt($(this).height());
if (c_height > height) {
height = c_height;
}
});
this.css('height', height);
return this;
}
}(jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment