Skip to content

Instantly share code, notes, and snippets.

@pope
Created January 21, 2010 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pope/282471 to your computer and use it in GitHub Desktop.
Save pope/282471 to your computer and use it in GitHub Desktop.
(function($) {
var max_height = 0;
$("div.col").each(function(){
var height = $(this).height();
if (height > max_height)
max_height = height;
}).height(max_height);
})(jQuery);
(function($) {
var col = $("div.col");
var max_height = Math.max.apply(null, col.map(function() {
return $(this).height();
}));
col.height(max_height);
})(jQuery);
(function($) {
$("tr:odd, li:odd").addClass("odd");
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment