×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: user386d9
Added: Apr 11, 2017 1:55 PM
Modified: Apr 11, 2017 1:56 PM
Views: 5
Tags: no tags
  1. function egalize(what) {
  2.     $(what).css({'height': 'auto'});
  3.     var max = 0;
  4.     $.each($(what), function () {
  5.         if ($(this).height() > max) {
  6.             max = $(this).height();
  7.         }
  8.     });
  9.     $(what).height(max);
  10. }