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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:16:57+00:00 2026-05-14T04:16:57+00:00

I’ve been having some issues setting up a list of items and moving them

  • 0

I’ve been having some issues setting up a list of items and moving them between each other.

Is it possible to have multiple lists, with a link inside each item to move it to a specified list? i.e. List of actions with a plus next to the action, click the plus and move to a specified box? Furthermore, would it be possible to then load a lightbox (code would have to be inline I’d guess) from that page and move those names to the specific list as well?

Example Images


More broad view of my efforts so far…

The initial issue being that I could not use listboxes due to their being rendered natively inside each individual browser. Through listboxes I was able to set this up, but with a trigger via the code below (found on Stack overflow). While it gave me partial functionality it did not get the target I was looking for.

document.getElementById('moveTrigger').onclick = function() {

var listTwo = document.getElementById('secondList');
var options = document.getElementById('firstList').getElementsByTagName('option');

while(options.length != 0) {
    listTwo.appendChild(options[0]);
}

}

I then moved onto jQueryUI’s sortable and its ability to connect multiple, and most importantly, style-able lists and to be dragged between each other. This works for the side by side tables, but it does not offer the usability I was looking for overall.

So, I’ve come to where I’m unsure as to where to move forward. While I can get around PHP, I wouldn’t know where to start with this one personally. I’m open to any and all options!

  • 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-14T04:16:57+00:00Added an answer on May 14, 2026 at 4:16 am

    If I understand you correctly, you want to move items between two lists. When something is clicked in list A, it’s supposed to be moved to list B. And when an item on list B is clicked, it should to be moved to list A.

    Assuming the structure of a list looks like:

    <div id="listA">
        <div class="listItem">
            <input type="button" class="action" value="+" />
            Action 1
        </div>
        ...
        ...
    </div>
    

    You could use live or delegate to assign the events on the list elements once.
    On listA, we would do:

    $("#listA").delegate(".action", "click", function() {
        var item = $(this).closest('.listItem');
        $(this).val('-');
        $("#listB").append(item);
    });
    

    This means that whenever any element with class action is clicked inside #listA, then find the item (listItem) represented by it, and move it to list B. Similarly, on list B, we do the reverse:

    $("#listB").delegate(".action", "click", function() {
        var item = $(this).closest('.listItem');
        $(this).val('+');
        $("#listA").append(item);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.