same height each row for div well
bootstrap equal height
by tjbaezid
HTML
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<div class="container">
<div class="row">
<div class="col-xs-8">
<strong>Title</strong>
<div class="well well-sm">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
<div>Item 4</div>
<div>Item 5</div>
<div>Item 6</div>
</div>
</div>
<div class="col-xs-4">
<strong>Title</strong>
<div class="well well-sm">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
<div>Item 3</div>
<div>Item 3</div>
<div>Item 3</div>
</div>
</div>
</div>
</div>
CSS
.well {
border: 1px solid red;
}
JavaScript
var maxHeight = 0;
$(".row").each(function() {
if ($(this).height() > maxHeight) {
maxHeight = $(this).height();
}
});
$(".well ").height(maxHeight);