This is my code.
v=dom.find("ul:first").outerHeight(); // the height of the first li element
// instead of taking the height of the first li element, it should loop through all
// li elements and set v to the element with the biggest height
The comment in the middle of the code pretty much explains everything. I need to loop through all li elements and take the biggest height, instead of taking the height of the first element.