Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <div id="plans">
  <div class="pad plan1">1</div>
  <div class="pad plan2">2</div>
  <div class="pad plan3">3</div>
  <div class="pad plan4">4</div>
  </div>
</body>
</html>
 
function resizeHandler(){
  var highestBox = 0;
    $('#plans').each(function () { 
        
      
        $('.pad', this).each(function () { 
          if ($(this).height() > highestBox){
                highestBox = $(this).height();
          }
        });
        $('.pad', this).height(highestBox);
    });
  console.log(highestBox)
}
window.onresize = resizeHandler;
resizeHandler();
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
AttilaSATANpro
0viewers