Answers for "JS equal sibling btns height"

0

JS equal sibling btns height

$(function(){
    function equalHeight(){
        var heightArray = $(".sameHeight").map( function(){
            return  $(this).height();
        }).get();
        var maxHeight = Math.max.apply( Math, heightArray);
            $(".sameHeight").height(maxHeight);
        }
    equalHeight();
});
Posted by: Guest on March-03-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language