This post was most recently updated on July 29th, 2024
Here equalheight is parent class to find intro class and set equal height to all.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
function equalheight() { $('.equalheight').each(function (index) { var maxHeight = 0; $(this).find('.intro').height('auto'); $(this).find('.intro').each(function (index) { if ($(this).height() > maxHeight) maxHeight = $(this).height(); }); $(this).find('.two-gep-intro').height(maxHeight); }); }. $(document).ready(function () { equalheight(); }); $(window).bind("resize", equalheight); |