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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:51:44+00:00 2026-05-27T11:51:44+00:00

Possible Duplicate: Drag and Drop between Multiple Lists and Sortable I want to have

  • 0

Possible Duplicate:
Drag and Drop between Multiple Lists and Sortable

I want to have two boxes containing their respective elements. I’d like these elements to be sortable AND draggable into the other container (where they will be able to be sorted with they’re new mates)

I have this code:
http://jsfiddle.net/Q63nc/

but it seems that the “sortable” property is not taken and, in addition, once I move a blue box I can’t drag it anymore. Why this?

Thank you for your patience in advance!

  • 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-27T11:51:45+00:00Added an answer on May 27, 2026 at 11:51 am

    The problem you were having with sortable is that you were specifying the wrong classes. You need to select the lists, not the items in the lists.

    To get the functionality you want, check out the sortable connectWith property.

    The description of the connectWith option:

    Takes a jQuery selector with items that also have sortables applied. If used, the sortable is now connected to the other one-way, so you can drag from this sortable to the other.

    Here is a new fiddle that shows it working – http://jsfiddle.net/huWYN/.

     $(function(){
         $("#left-side, #right-side")
             .sortable({
                 axis: "x",
                 connectWith: ".droppable"
             })
             .disableSelection();
    });
    

    I added disableSelection so you don’t accidentally hilight things in the list while you’re moving them around. It just makes the experience smoother. You might want to do this for the whole container both lists are in.

    disableSelection isn’t documented yet, but it is part of the jQuery UI Core as of 1.7.

    From this thread post on the function:

    It’s useful for making text elements, or elements that contain
    text, not text-selectable. For example, if you have a draggable element, you
    may not want text selection to occur when the user goes to drag the element.

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

Sidebar

Related Questions

Possible Duplicate: Multiple forms on ASP.NET page i have a doubt. can we place
Possible Duplicate: Drag and Drop Java GUI Hi about 3 months ago I started
Possible Duplicate: How to make drag-and-drop from one list to another in C#/WindowsForms? I
Possible Duplicate: thread with multiple parameters How does one thread a sub with two
I'm implementing drag and drop functionality between two datagridviews. This works as intended with
Possible Duplicate: Split A4 PDF page into two A5 and back again I have
Possible Duplicate: Android GridView reorder elements via Drag and Drop Can anyone give me
Possible Duplicate: Force Download an Image Using Javascript Basically I want to have the
Possible Duplicate: How does the Google Did you mean? Algorithm work? Suppose you have
Possible Duplicate: Drag WPF Popup control I created a WPF popup control in my

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.