﻿$(document).ready(function () {
    $.fn.equalizeDivColumns = function () {
        var $container = $(this);
        var maxHeight = $container.height();

        setHeightOfChildrenDivs($container)

        function setHeightOfChildrenDivs($container) {
            $container.children('div').each(function () {
                $(this).height(maxHeight);

                //recursive for direct children divs
                setHeightOfChildrenDivs($(this));
            });
        };
    };
});
