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

  • Home
  • SEARCH
  • 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 7004999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:16:21+00:00 2026-05-27T21:16:21+00:00

New to JSON so I’ll do my best here. I have a JSON object

  • 0

New to JSON so I’ll do my best here. I have a JSON object called HUDS. Below are 2 sample nodes (by the way, can I call these nodes in JSON like in XML?).

var HUDS = [
{
    "DISTRICT": "100",
    "BIOS": "BROWN",
    "AREA_KM": "3663.158164",
    "AREA_MI": "1414.347616",
    "NAME": "100",
    "REG": "1",
    "ACRES": "905182",
    "EMU_Name": "Purcell",
    "Shape_Leng": "299746.4938",
    "Shape_Area": "3663158164",
},
{
    "DISTRICT": "101",
    "BIOS": "THIER",
    "AREA_KM": "1507.774765",
    "AREA_MI": "582.152762",
    "NAME": "101",
    "REG": "1",
    "ACRES": "372578",
    "EMU_Name": "Salish",
    "Shape_Leng": "229150.0655",
    "Shape_Area": "1507774766",
}

]

I have a drop down form that will be used to specify a value specific to the “BIOS” field in my JSON. For example the user could select BROWN from the dropdown menu.

I’d then like to create a var that can be used to fill in a div. For example when the user selects BROWN I’d like my div to fill with the value from “EMU_Name”

I know this is wrong but maybe it conveys what I am going for

function dropDownAction(){
var tempBios=document.BIOSForm.BIOS.value;
var tempEmuValue=HUDS.BIOS==tempBios.EMU_Name;
document.getElementById("mydiv").innerHTML=tempEmuValue;

}

  • 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-27T21:16:22+00:00Added an answer on May 27, 2026 at 9:16 pm

    Try:

        <form name="BIOSForm">
            <select name="BIOS" onchange="dropdownaction();">
                <option value="BROWN">BROWN</option>
                <option value="THEIR">THEIR</option>
            </select>
        </form>
        <div id="emuname">
    
        </div>
    
        <script type='text/javascript'>
        var HUDS = [
        {
            "DISTRICT": "100",
            "BIOS": "BROWN",
            "AREA_KM": "3663.158164",
            "AREA_MI": "1414.347616",
            "NAME": "100",
            "REG": "1",
            "ACRES": "905182",
            "EMU_Name": "Purcell",
            "Shape_Leng": "299746.4938",
            "Shape_Area": "3663158164",
        },
        {
            "DISTRICT": "101",
            "BIOS": "THIER",
            "AREA_KM": "1507.774765",
            "AREA_MI": "582.152762",
            "NAME": "101",
            "REG": "1",
            "ACRES": "372578",
            "EMU_Name": "Salish",
            "Shape_Leng": "229150.0655",
            "Shape_Area": "1507774766",
        }
        ]
    
        function dropdownaction(){
            for(var x=0;x<HUDS.length;x++){
                var tempBios = document.BIOSForm.BIOS.value;
                if(tempBios == HUDS[x].BIOS){
                    document.getElementById("emuname").innerHTML = HUDS[x].EMU_Name;
                    break;
                }
            }
    
        }
    
    
        </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whats wrong in below JSON Object definition I am trying to create a new
am new to Json so a little green. I have a Rest Based Service
I have a problem accessing JSON data. I'm new to JSON and jquery so
I have this code: $coder = JSON::XS->new->utf8->pretty->allow_nonref; %perl = $coder->decode ($json); When I write
Like the JSON converter, is there any easy way to convert an object into
Example: I have the following JSON object. {currentVersion : 10.0, folders : [], services
How can i remove the key's with null values and form a new json.
Here's the scenario-- you've got a JSON object on the browser, and let's say
Im new to JSON and have whats probably a basic question. I have some
I'm new to JSON and have been using it with MVC3 ASP.NET but could

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.