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 3351714
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:56:31+00:00 2026-05-18T01:56:31+00:00

I am trying to grab the first item in a set but none of

  • 0

I am trying to grab the first item in a set but none of the examples i have seen on traversing really fit the format I am using. Any help would be greatly appreciated.

function popagateDegreeUpwards(obj, sectionNum, compLev, counter)
{
    var ddl = $(obj);
    var oneTierUpPnl = ddl.parent('.Section' + (sectionNum - 1));
    var parDdls = oneTierUpPnl.find('.DDLSelector' + (sectionNum - 1));
    var parDdl = //How do I select the first element in the parDdls Set???
}
  • 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-18T01:56:32+00:00Added an answer on May 18, 2026 at 1:56 am

    Use the :first selector. Here’s some documentation: http://api.jquery.com/first-selector/

    You might use it like so:

    function popagateDegreeUpwards(obj, sectionNum, compLev, counter)
    {
        var ddl = $(obj);
        var oneTierUpPnl = ddl.parent('.Section' + (sectionNum - 1));
        var parDdls = oneTierUpPnl.find('.DDLSelector' + (sectionNum - 1));
        var parDdl = $(':first', parDdls);
    }
    

    You could also use the .first() call. Docmentation here: http://api.jquery.com/first/

    Usage example:

    function popagateDegreeUpwards(obj, sectionNum, compLev, counter)
    {
        var ddl = $(obj);
        var oneTierUpPnl = ddl.parent('.Section' + (sectionNum - 1));
        var parDdls = oneTierUpPnl.find('.DDLSelector' + (sectionNum - 1));
        var parDdl = parDdls.first();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to grab the first parent element that matches a class check, but
I have been trying to grab a first location name inside the sentences. The
I am trying to grab all the td elements between the first two that
I am trying to grab a user job notes but am not sure what
I have been trying to grab a file from an alternate git branch and
Hi I am trying to grab a div from another website using JS. I
I'm trying to grab a variable from an external file, but I need the
I'm trying to randomly grab about 20 random rows from a table, then using
I am trying to grab consecutive frames from android using opencv VideoCapture class. Actually
I have a drupal site, and am trying to use php to grab some

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.