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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:11:51+00:00 2026-05-28T19:11:51+00:00

So basically I have an array of objects with properties. Now the array is

  • 0

So basically I have an array of objects with properties. Now the array is 102 elements long from a particular dataset that I am testing with. #’s 4 and 6 in the array come through fine but 5 has an issue. I have checked this site and many others and I’ve found one instance of the exact issue, their solution to use property notation did not work.

When I check questionList[5][‘id’] it returns “undefined”, same with questionList[5].id. I don’t understand why. Here is the object that is the problem:

questionList[5]: Object
    id: "questionPage-6"
    attached: ""
    options: Array[4]
    required: true
    text: "How often do all of your active members meet?"
    type: "dropdown"
    value: ""

Whereas this question right after it:

questionList[6]: Object
    attached: ""
    id: "questionPage-7"
    required: true
    text: "How are these meeting successful and how could they be improved?"
    type: " textarea"
    value: ""

When I do questionList[6][‘id’] I get “questionPage-7”.

Because 5’s id is undefined I can’t create the tabs in jQuery UI that I’m trying to create, I get bad fragment identifiers because the div id that uses the id is set as #undefined.

  • 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-28T19:11:52+00:00Added an answer on May 28, 2026 at 7:11 pm

    The problem is that your raw JSON has the id property of the element at index 5 with a space, that is it has " id" instead of "id".

    Demo showing it works if you use questionList[5][" id"]: http://jsfiddle.net/VYwYC/

    (Obviously you need to fix the source of the JSON.)

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

Sidebar

Related Questions

I have a 2-dimensional array of objects and I basically want to databind each
I have a pretty simple problem. Basically I have an array called $list that
I have an array(sorted on an attribute called node_id) of ruby objects which basically
I have a dynamically generated array from a database. Basically it's an array of
I have an array of products that I'm pulling from the db. I've verified
Basically, I have an array like this: val base_length = Array( 0, 1, 2,
Basically, I have an array of keywords, and a piece of text. I am
I have a byte array of around 10,000 bytes which is basically a blob
I have a multi-dimensional array, which basically consists of one sub-array for each year.
I have a tree-like object structure that consists of two types of objects: object

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.