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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:42:20+00:00 2026-05-20T15:42:20+00:00

I am querying three databases and want to show their columns in three click-able

  • 0

I am querying three databases and want to show their columns in three click-able lists. I want the user to select a number of columns from these lists and then on pressing a button, only the selected columns and the lists/tables that they came from would be passed to a function for processing.

I found some code online that does this with forms. Is there any way to do this without forms? I am used to using JList with java and have little experience with javascript.

.

The code that does something similar to what I am trying to do (with forms) for one list is:

http://www.mredkj.com/tutorials/tutorial006.html

EDIT: I just found out about Javascript ListBoxes. I think I am just going to use them. It seems like using forms is going to inevitable when creating lists.

  • 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-20T15:42:21+00:00Added an answer on May 20, 2026 at 3:42 pm

    jQuery is a really simple JavaScript library for doing things like this (and for user interaction in general).

    For example, if you want to select the second column of a table and store the cells’ data into an array, this simple code would do it (I’m notorious for making mistakes, so correct me if it doesn’t):

    var elements = [];
    
    $('#id_of_your_table tr td:eq(1)').each(function()
    {
      elements.push($(this).html());
    });
    

    Now, elements contains the values of the second column of the table.


    You’re talking about plain ‘ol HTML <select>, I think. Paste this into an HTML document to see what I mean.

    <select id="my_listbox" multiple="yes" size="6">
      <option>Foo 1</option>
      <option>Foo 2</option>
      <option>Foo 3</option>
      <option>Foo 4</option>
      <option>Foo 5</option>
      <option>Foo 6</option>
    </select>
    

    To get the selected values, this code should work:

    var values = [];
    
    $('#my_listbox :selected').each(function(i, selected)
    {
      textvalues[i] = $(selected).text();
    });
    

    If your users can’t figure out how to check the items, writing your own checkable listbox is really easy. Check out my example here: http://jsfiddle.net/2hDVR/2/.

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

Sidebar

Related Questions

When querying with LDAP against our Active Directory structure to look up user accounts,
I'm querying a bunch of information from cisco switches using SNMP. For instance, I'm
The db I am querying from is returning some null values. How do I
I am querying database from my EJB Bean, which is DAO, my query look's
The thing is that there are number of items in the HTML select list.
I want to show the same data in a page where the data was
I am querying a database of latitude and longitude values and want to return
I have two tables that I'm querying from. In one table, there are fields
I want to generate some data for editing, filtered by the choice a user
I have an SQL server database that I am querying and I only want

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.