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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:09:41+00:00 2026-05-24T13:09:41+00:00

I may be looking at this one the wrong way. I think that dynamically

  • 0

I may be looking at this one the wrong way. I think that dynamically naming the object is the difficult part rather than creating it.

Basically I have an array of arrays and I want to get the nested arrays out.

var $jTableTRS = $('tr.child');
var $jTableTRSArr = jQuery.makeArray($jTableTRS);

each slot in $jTableTRSArr has an array object contained. Thing is i will never know how many arrays are in the $jTableTRSArr.

for(var i=0;i<$jTableTRSArr.length;i++)
    {
            //var  tempArray(withuniqueidentifier) = $jTableTRSArr[i]
    }

This means I could reference each nested array by its name like

tempArray1[0].variable
and not $jTableTRSArr[0].variable.

I’m essentially bringing the nested arrays up one level.

Can this be done or is there a better way to do it?

  • 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-24T13:09:42+00:00Added an answer on May 24, 2026 at 1:09 pm

    To create dynamic variable names, you could do:

    for (var i = 0; i < arr.length; i++){
        window['MyNewArray-' + i] = arr[i];
    }
    

    Is this what you were looking for?

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

Sidebar

Related Questions

I am probably looking at this the wrong way, but I am having trouble
May I know what is the most efficient way to construct a date object
First word of warning, I believe this is a stackoverflow rather than programmers question,
Just looking for some advice on this one, what exactly is a loading screen
I am looking for ideas I don't know where to start with this one.
While I search this one out on my own, may be some one could
This one has me rather confused. I've written a query which runs fine from
I've been developing a Django site that uses django-social-auth ( this one ) for
It may not be a pure programming question but I'm looking for information about
I am looking for a framework to turn given Java class into WebService (may

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.