Guest User

Untitled

a guest
Jan 23rd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // @desc: jQuery plugin to make elements equal height
  2. (function($) {
  3. $.fn.equalizeHeight = function() {
  4. var elementHeight = 0;
  5.  
  6. this.each(function(){
  7. if ($(this).height() > elementHeight) {
  8. elementHeight = $(this).height();
  9. }
  10. });
  11.  
  12. return this.height(elementHeight);
  13. };
  14.  
  15. }(jQuery));
Add Comment
Please, Sign In to add comment