Setting equal height with jQuery

$(‘.category-products-grid > .item’).each(function() {

$(this).css(“height”, “auto”);

gridItemMaxHeight = Math.max(gridItemMaxHeight, $(this).height());

});

$(‘.category-products-grid > .item’).css(“height”, gridItemMaxHeight + “px”);