Div com mesmo height

by cintia_rodrigues

HTML

<div class="col-6 jq_recized"></div>
<div class="col-6 jq_recized"></div>

JavaScript

//keep div with same height


function fixHeight() { 
    if ($(window).outerWidth() > 759) { 
        var maxHeight = 0; 
        $(".jq_recized").each(function () { 
            if ($(this).outerHeight() > maxHeight) { maxHeight = $(this).outerHeight(); } 
        }); 
        $(".jq_recized").css('min-height', maxHeight);
    } 
    else { 
        $(".jq_recized").css('min-height', '');
    } 
}