Created
January 21, 2010 00:35
-
-
Save pope/282471 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
var max_height = 0; | |
$("div.col").each(function(){ | |
var height = $(this).height(); | |
if (height > max_height) | |
max_height = height; | |
}).height(max_height); | |
})(jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
var col = $("div.col"); | |
var max_height = Math.max.apply(null, col.map(function() { | |
return $(this).height(); | |
})); | |
col.height(max_height); | |
})(jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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