Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery get element max height

var maxHeight = Math.max.apply(null, $("div.panel").map(function ()
{
    return $(this).height();
}).get());

//or
var heights = $("div.panel").map(function ()
    {
        return $(this).height();
    }).get();

maxHeight = Math.max.apply(null, heights);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #element #max #height
ADD COMMENT
Topic
Name
9+1 =