Jquery function to find out max height of element

Jquery function to find out max height of element

This function to find out that out of the given div which element has the maximum height?

var max = -1;
jQuery(".subcate-title").each(function() {
	var h = jQuery(this).height(); 
	max = h > max ? h : max;
});

Comments

comments

Share