Advertisement
Guest User

Equal Height

a guest
Aug 28th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $('[data-height]').each(function(){
  2.         var baseHeight = 0;
  3.         var target = $(this).attr('data-height');
  4.         if( $(target).height() > baseHeight ){
  5.             baseHeight = $(target).height();
  6.         }
  7.         $(this).height(baseHeight);
  8.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement