Created
July 6, 2017 13:24
-
-
Save baladkb/2068c877a0b3bdf6e39bda74ae523cb7 to your computer and use it in GitHub Desktop.
Jquery function to find out max height of <li>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var max = -1; | |
$("li").each(function() { | |
var h = $(this).height(); | |
max = h > max ? h : max; | |
}); | |
alert(max); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment