Return to Snippet

Revision: 51824
at October 5, 2011 06:36 by kendsnyder


Initial Code
$.fn.totalHeight = function() {
	var total = 0;
	this.each(function(i, el) {
		total += $(el).height();
	});
	return total;
};
$.fn.totalOuterHeight = function() {
	var total = 0;
	this.each(function(i, el) {
		total += $(el).outerHeight();
	});
	return total;
};

Initial URL


Initial Description


Initial Title
jQuery get total height

Initial Tags
plugin, jquery

Initial Language
jQuery