javascript - Jquery function to find out max height of <li> -


i want find out out of given <li> li has maximum height? how write such function?

if there n <li> elements of different size, content , height. want figure out maximum height of biggest <li> element.

try this:

var max = -1; $("li").each(function() {     var h = $(this).height();      max = h > max ? h : max; }); alert(max); 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -