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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:38:45+00:00 2026-05-16T00:38:45+00:00

Currently we have a table with a bunch of data from a database which

  • 0

Currently we have a table with a bunch of data from a database which the user can “check” symbolizing that they use this content. This is also prepopulated such that if it is a returning user, the things they submitted before are checked onload. Since this list of data is long, it is hard to tell what data has been selected, so what I want to do is display a list of what has been checked to the side. This in itself isn’t that hard on first running, but I want it to keep updated as users uncheck and check other data.

When prepopulating the checkboxes I used .click to check the different boxes so I think the way to go is have a function for the click event that will add the content that was clicked to the display list or remove it from the display. The main problems I have run into is that:

  1. Javascript does not support lists in the way as Python does and such so I am not sure of the best way to add an entry to an array or remove it as it goes.
  2. How to pull the content of the checked data so to add it to the list.

Not sure how much these code snippets will help as the program contains more information than just this one field. An easy way to do it is just make a basic checkbox with multiple entries containing different text values and trying to make it print an array of the checked entries not worrying about the code I have already.
Any help is appreciated though,
Daniel

HTML for area:

<div id="technologies" class="scroll_fixed2">
              <py:for each="item in technologies">
                <input type="checkbox" name="technologies[]" id="technologies_$item" value="$item"><label for="technologies_$item">$item</label></input><br />
              </py:for>
            </div>

Javascript / JQuery so far:

// Check all previously selected items
for(item in technology_list){
    $('input[id=\'technologies_' + $.escape(technology_list[item]) + 
      '\']').click();
}
  • 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-16T00:38:46+00:00Added an answer on May 16, 2026 at 12:38 am
    var inputs = $('#technologies input:checkbox') // selects them
    
    inputs.trigger('click') // triggers them
    
    var values = inputs.map(function() { return this.value }).get() // grabs values into an array
    

    You can use input:checkbox:checked for checked ones.

    If you want to select all inputs within that element.

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

Sidebar

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.