Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6173247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:32:22+00:00 2026-05-23T23:32:22+00:00

So I have this list that uses the same class name on all the

  • 0

So I have this list that uses the same class name on all the items in the list. I have a jQuery plugin that finds the tallest element and makes the heights of all the list items equal to the tallest.

The thing that I want to do is that I want to run the method for each UL group. What I mean is that right now jQuery is selecting ALL the LI elements even if they are in other Lists and makes them all the same as the tallest one. I only want the list items to be as tall as the tallest element in their list not in other lists.

This is how I call it and it works, but not the way that I’m asking.

$j('.list-item').equalHeights(200); //minimum is 200px

I tried this but it yields the same results:

$j('.lists').find('li').equalHeights(200);

I wasn’t sure if i had to loop through each UL then run the method that way?

HTML:

<ul class="lists">
    <li class="list-item">item</li>
    <li class="list-item">item</li>
    <li class="list-item">item</li>
    <li class="list-item">item</li>
</ul>
<ul class="lists">
    <li class="list-item">item</li>
    <li class="list-item">item</li>
    <li class="list-item">item</li>
    <li class="list-item">item</li>
</ul>
<ul class="lists">
    <li class="list-item">item</li>
    <li class="list-item">item</li>
    <li class="list-item">item</li>
    <li class="list-item">item</li>
</ul>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:32:22+00:00Added an answer on May 23, 2026 at 11:32 pm

    Yes, you’ll want to loop:

    $j('.lists').each(function() {
        $j(this).find('li').equalHeights(200);
    });
    

    Your $j('.lists').find('li').equalHeights(200); was close, but it finds all of the li elements under all of the lists and returns a single jQuery instance containing all of them (so, still the whole set). The above processes each list in isolation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have xml that looks like this: <todo-list> <id type=integer>#{id}</id> <name>#{name}</name> <description>#{description}</description> <project-id
Some existing web services I consume have methods that look something like this: List<Employee>
Hej, assuming I have a code that looks like this: List<User> userList = GetUserByName
I have a longish list of files opened in vim that looks like this:
I have a class WebServiceCaller that uses NSURLConnection to make asynchronous calls to a
I have a class that uses linq to access the database. Some methods call
I have this unordered list <ul> <li>two</li> <li>three</li> </ul> Is there a way I
I have a this aspx-code: (sample) <asp:DropDownList runat=server ID=ddList1></asp:DropDownList> With this codebehind: List<System.Web.UI.WebControls.ListItem> colors
I have this code: chars = #some list try: indx = chars.index(chars) except ValueError:
I'm trying to combine a list of functions like so. I have this: Func<int,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.