Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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();
});
Source by khaalipaper.com #
 
PREVIOUS NEXT
Tagged: #JS #equal #sibling #btns #height
ADD COMMENT
Topic
Name
9+4 =