Skip to content

Instantly share code, notes, and snippets.

@iArnaud
Forked from tvandervossen/gist:1788012
Created January 28, 2013 14:05
Show Gist options
  • Select an option

  • Save iArnaud/4655753 to your computer and use it in GitHub Desktop.

Select an option

Save iArnaud/4655753 to your computer and use it in GitHub Desktop.
(function($){
$.fn.highest = function() {
var height, highest = 0;
this.each(function() {
height = $(this).height();
if (height > highest) highest = height;
});
return highest;
};
})(window.Zepto || window.jQuery);
console.log($('#classification ul').highest());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment