Get maximum value of height using jQuery


$(function() {

// get all height and set in array
        var proh = [];
        $('.yourobject-1').each(function() {
                proh.push($(this).outerHeight());
        });

// get maximum value of arry
        var mxhp = Math.max.apply(Math, proh);

// give same min-hight to all
        $(".yourobject-1").css({
                "min-height": mxhp
        });
});

Comments

Post a Comment