Posted By

kendsnyder on 10/05/11


Tagged

plugin jquery


Versions (?)

jQuery get total height


 / Published in: jQuery
 

  1. $.fn.totalHeight = function() {
  2. var total = 0;
  3. this.each(function(i, el) {
  4. total += $(el).height();
  5. });
  6. return total;
  7. };
  8. $.fn.totalOuterHeight = function() {
  9. var total = 0;
  10. this.each(function(i, el) {
  11. total += $(el).outerHeight();
  12. });
  13. return total;
  14. };

Report this snippet  

You need to login to post a comment.