I have one div and more than one data comes into this div by jstl tag. I want to find max content div height. I have seen one link but it is show in alert every time 20. element with the max height from a set of elements
JSP
<div id="div-height" class='cat-product-name'>${i.name} </div>
JAVA SCRIPT
$(window).load(function () {
var maxHeight = Math.max.apply(null, $("#div-height").map(function ()
{
return $(this).height();
}).get());
alert(maxHeight);
});
I want to find max height of div and set this height of every div.