// Apply heights to li ags within UL groups.
$(".item-list ul").each(function() {
$(this).find('li').equalHeights(50,400);
});
/*
Or forget the plugin above and grab the highest measurement of the li tags within a UL group and apply it to the parent <ul>
The issue is that the same height (from the first ul group) is applied to the all ULs when in reality the first group (row 1) should be 260px and the second (row 2) should be 156px
*/
// get the height of the tallest LI within each UL group
var max = Math.max.apply(Math, $(".item-list ul li").map(
function(){
return $(this).height();
}
));
/*
now render the height in each parent UL
-- not working yet
$(".item-list ul li").each(function() {
$(this).find(".item-list ul").height(max);
});
*/
// this does not seem to grab unique instanaces and put them in each parent UL group.
$(".item-list ul").height(max);
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.