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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:01:02+00:00 2026-05-23T08:01:02+00:00

I have the following two select (multiple lists) which I’m trying to setup as

  • 0

I have the following two select (multiple lists) which I’m trying to setup as a shuttle by where I provide the user an "Available List" on the left which they can select from, which then gets transported to the right select list, which is my "Assigned List".

The HTML code is as follows:

<select multiple="multiple" name="avail_list" size="7" style="width:250px;" id="AVAILABLE_LIST">
    <option value="A">A1</option>
    <option value="B">B1</option>
    <option value="C">C1</option>
    <option value="D">D1</option>
    <option value="E">E1</option>
    <option value="F">F1</option>
</select>
    
<select multiple="multiple" name="assign_list" size="7" style="width:250px;" id="ASSIGNED_LIST">
    <option value="D">D1</option>
    <option value="E">E1</option>
    <option value="F">F1</option>
</select>

Through the use of jQuery, how could I possibly remove from the AVAILABLE_LIST, the options that have been selected and are now in the ASSIGNED_LIST?

I need to some how perform on the option values only (AVAILABLE_LIST minus ASSIGNED_LIST).

So based on the above, the AVAILABLE_LIST would then look like this:

<select multiple="multiple" name="avail_list" size="7" style="width:250px;" id="AVAILABLE_LIST">
    <option value="A">A1</option>
    <option value="B">B1</option>
    <option value="C">C1</option>
</select>

Just to make myself clear, I already have the above data setup when entering my page, that is, there are already values in the "Assigned List" on the right.

On entry when presenting this page with the two select lists to the user, I want to programmatically perform the minus between the two sets in the background. There is no human interaction required as the selection has already been made.

Is this possible?

  • 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-23T08:01:02+00:00Added an answer on May 23, 2026 at 8:01 am

    Yes you can, look at this fiddle: http://jsfiddle.net/57JUD/5/

    Try this code:

    $('#ASSIGNED_LIST > option').each(function(index, element){
        var val= $(element).val();
         $('#AVAILABLE_LIST > option[value="'+val+'"]').remove();
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following scenario: Two lists of different Types which happen to contain
I have the following two columns: SELECT b.ip_address AS IP ,b.mask AS MASK FROM
I have the following two queries: select count(*) from segmentation_cycle_recipients scr , segmentation_instance si
I have tried the following two statements: SELECT col FROM db.tbl WHERE col (LIKE
I have two queries, as following: SELECT SQL_CALC_FOUND_ROWS Id, Name FROM my_table WHERE Name
I have two tables that I am joining with the following query... select *
I have two tables which look like the following tools : id | part
if i have a form with the following two elements. <select name= size=5 id=reasons
I have multiple select boxes on the page all of which share the same
I have the following two tables, affiliates and referrers. affiliates Table id loginid 3

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.