How to get current height of largest element in a collection?
I have a series of elements with
fixed widths but
heights which vary based on content.
I need to set all elements of like classname to the same height as the largest current one.
So far, I have this to apply the height - but is there a clean way to grab the largest height value from the myCont collection?
$(document).ready(function(){
$('.myCont').css({'height': newHeight });
});
<div class="myCont">some text</div>
<div class="myCont">this one may contain a whole lot more text that the rest .....</div>
<div class="myCont">a little text</div>
<div class="myCont">some more text than others</div>