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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T09:22:06+00:00 2026-05-19T09:22:06+00:00

Hi I would like to get all the values in a listbox. Here is

  • 0

Hi I would like to get all the values in a listbox.
Here is the reason. I have 3 list boxes say A,B,C when I click on an Item in A it populates B with values and I select values from B and add it to C which removes it from B so no duplicates can be added to C.

I may still get data in B that I have already added to C. SO I need to get all the values in C so I can screen data from the server before I add them to B when I click between Items in A.

Also the items in B(A) are not unique i.e. let say I click on an Item in A say A1 and B gets populated with data lets call this data B1(its a set) if I click on another item in A say A2 and B gets populated with data say B2 the intersection of B1 and B2 is not always empty (there could exist an item in B1 and B2).

I know this is a bit complicated explanation but can you just tell me how to get all the values of a listbox or how to iterate through them

  • 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-19T09:22:07+00:00Added an answer on May 19, 2026 at 9:22 am

    To loop through list options with jQuery and store in an array use the following:

    
    
    //Array to hold original subTypes
    var _SubTypes = new Array();
    
    //Function to Store Initial List of Sub Types
    function StoreSubTypes()
    {
        $("#comp_subtype option").each(
                               function(index, option)
                           {
                            //Store the option
                            _SubTypes[index] = option;
                           }
                          );
    }
    
    

    You could have an array for each list and call the code abouve but with a parameter for the list to store, and the array to store it in

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

Sidebar

Related Questions

I would like to be able to get a list of all possible files
I would like to iterate through a CFDictionary (CFPropertyList) and get all values on
I have a model, below, and I would like to get all the distinct
I have the following classes. For testing purpose, I would like to get all
I would like to get all possible available currencies. Java 7 had provided such
Given an HTML page I would like to get all the 'x' files that
I would like to decompile a .swf file and get all the images from
I would like to get the dimensions (coordinates) for all the HTML elements of
I would like to get a reference to all objects in the Java heap,
I would like to get some information on list of points that needs to

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.