jquery get element max height

Solutions on MaxInterview for jquery get element max height by the best coders in the world

showing results for - "jquery get element max height"
Irene
16 Oct 2017
1var maxHeight = Math.max.apply(null, $("div.panel").map(function ()
2{
3    return $(this).height();
4}).get());
5
6//or
7var heights = $("div.panel").map(function ()
8    {
9        return $(this).height();
10    }).get();
11
12maxHeight = Math.max.apply(null, heights);
13