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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:13:20+00:00 2026-05-22T21:13:20+00:00

I would somehow assume that something like that has been asked but can’t find

  • 0

I would somehow assume that something like that has been asked but can’t find anything.

  1. At the beginning, all students are in the left list.
  2. User can move students to the right list by clicking on the arrow
  3. User can move students back to the original list
  4. If group of students is too large, user can search with autocomplete
  5. Pressing add (or enter) adds shifts the autocompleted student from left to right

I’m lost with where and how to start. What I’ve done so far.
Autocomplete works, there is no ‘add’ button yet.
The left list is populated.

What are good ways for:

  • moving the students left and right
  • connecting the lists with the autocomplete box

I’m not troubled by the serverside parts (PHP/mysql), but I rarely use js/jQuery and would be glad for any hints on how to approach this.

  • 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-22T21:13:21+00:00Added an answer on May 22, 2026 at 9:13 pm

    Something like this?

    $('#students li').live("click",function(){
       $(this).appendTo("#selectedStudents") 
    });
    
    $('#selectedStudents li').live("click",function(){
       $(this).appendTo("#students") 
    });
    
    $('#add').click(function(){
        $('#students li').filter(function(){
            if( $(this).text().toLowerCase() == $('#search').val().toLowerCase()){
                return true;
            }
        }).appendTo("#selectedStudents");
    });
    

    markup:

    <input type="text" id="search" /><input type="button" value="add" id="add" />
    
    <h4>students</h4>
    <ul id="students">
        <li>Robert</li>
        <li>Steve</li>
        <li>Clara</li>
        <li>Beatrix</li>
        <li>Maximilian</li>
    </ul>
    
    <h4>selected students</h4>
    <ul id="selectedStudents"></ul>
    

    example: http://jsfiddle.net/niklasvh/3SrKL/

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

Sidebar

Related Questions

I have a static method in my code that I would like somehow to
I would like to avoid the if statement below. Can I somehow copy the
I have some hidden inputs like this <input name=exam.normals[1].blahblah ..../> I would like somehow
My question is a NodeJS newbie question. I would like to somehow detect if
Using a Google Chrome Extension, I would like to fire some event or somehow
Assume that I have some array of data (a vector to be specific). Can
E.g. vector<string> a; vector<string> b; a.push_back(first); b=a; Would it be optimised somehow as vector<string>
Would it be possible to add a new operator to the String class that
Would like to be able to set colors of headings and such, different font
Wordpress 3.0 just came out and it was cited that one can make a

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.