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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:38:30+00:00 2026-06-17T13:38:30+00:00

So i have this html: <select id=CompanyMultiSelect name=CompanyMultiSelect multiple=multiple> </select> and i have JavaScript

  • 0

So i have this html:

 <select id="CompanyMultiSelect" name="CompanyMultiSelect" multiple="multiple">
</select>

and i have JavaScript that dynamically fills it up with data. The data is filled with, among other things, inputs that have id’s. They are generated dynamically, so i don’t know them until the page is loaded.

i need to select the id of all the inputs within the select so that i can parse their values to another location, and i want to do it with either JS or jQuery.

how would i go about selecting all ids as an array to use later on?

EDIT1:

The select segment is a placeholder for a plugin that creates a dropdown menu filled with checkboxes, so the fact that inputs are within a select shouldn’t bother you 🙂

  • 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-06-17T13:38:31+00:00Added an answer on June 17, 2026 at 1:38 pm

    Suppose you already have a jquery, so you can do something like this:

    var ids = [];
    $("parent_element_selector").find("input[type=checkbox]").each(function(){
       ids.push(this.id);
    });
    //here ids will be filled with ids of checkboxes.
    

    Please note that parent_element_selector can’t be #CompanyMultiSelect as select element can’t contain inputs, so your plugin will create a new wrapper element. You need to figure out how you can get it with firebug or dev tools

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

Sidebar

Related Questions

I have this html: <select name=garden multiple=multiple id=garden> <option value=1>Flowers</option> <option value=2>Shrubs</option> <option value=6>Trees</option>
I have this HTML: <select multiple='multiple' size='3'> <option>1</option> <option>2</option> <option>3</option> <option>4</option> <option>5</option> </select> Using
I have this HTML dropdown: <form> <input type=text id=realtxt onkeyup=searchSel()> <select id=select name=basic-combo size=1>
I have this dynamic HTML <select id='posto'> <select> <ul id=nazioni> <li data-dal=Europa, Mediterraneo>Italia</li> <li
I have this PHP/HTML code: <table> <tr> <td>Region:</td> <td> <select style=width:200px name=region> <?php for(
I have this HTML select code: ​<select name=loc_code> <option value=>Select</option> <option value=loc1>Loc1 status ON</option>
i have this html code: <select name=category id=category> <option value=0>&laquo;Seleziona la categoria&raquo;</option> <option value='1'
I have this html on a web page: <select name=chapter_select class=chapter_select> <option value=http://www.example.com/chapter/1>Chapter 1</option>
I have this HTML: <tr> <td> <input type=hidden name=MatchId[] value=> <select name=TeamId[]> <optgroup label=Women>
I have this in html code: <select name=t id=t> <option value=6>test2</option> <option value=0>Overall</option></select> <select

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.