Skip to content

Instantly share code, notes, and snippets.

@tvandervossen
Created February 10, 2012 09:28
Show Gist options
  • Save tvandervossen/1788012 to your computer and use it in GitHub Desktop.
Save tvandervossen/1788012 to your computer and use it in GitHub Desktop.
jQuery / Zepto highest() plugin
(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