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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:47:21+00:00 2026-06-12T12:47:21+00:00

I have divs: <div class=sortable container> <div class=line> content </div> <div class=line> content </div>

  • 0

I have divs:

<div class="sortable container">
    <div class="line">
        content
    </div>
    <div class="line">
        content
    </div>
</div>
<div class="sortable container">
    <div class="line">
        content
    </div>
    <div class="line">
        content
    </div>
    <div class="line">
        content
    </div>
    <div class="line">
        content
    </div>
</div>
<div class="sortable container">
    <div class="line">
        content
    </div>
    <div class="line">
        content
    </div>
    <div class="line">
        content
    </div>
    <div class="line">
        content
    </div>
</div>

and js:

$(function() {
    $(".sortable").sortable();
    $(".sortable").disableSelection();
});

this work fine – I can drag&drop “line” divs, but I want to drag this div between “container” divs. How to do it?

  • 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-06-12T12:47:23+00:00Added an answer on June 12, 2026 at 12:47 pm

    jQuery UI sortable page has a full example on connecting lists: http://jqueryui.com/demos/sortable/#connect-lists

    Extracted from there:

    <style>
        #sortable1, #sortable2 { list-style-type: none; margin: 0; padding: 0 0 2.5em; float: left; margin-right: 10px; }
        #sortable1 li, #sortable2 li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; width: 120px; }
    </style>
    <script>
        $(function() {
            $( "#sortable1, #sortable2" ).sortable({
                connectWith: ".connectedSortable"
            }).disableSelection();
        });
    </script>
    <div class="demo">
    
    <ul id="sortable1" class="connectedSortable">
        <li class="ui-state-default">Item 1</li>
        <li class="ui-state-default">Item 2</li>
        <li class="ui-state-default">Item 3</li>
        <li class="ui-state-default">Item 4</li>
        <li class="ui-state-default">Item 5</li>
    </ul>
    
    <ul id="sortable2" class="connectedSortable">
        <li class="ui-state-highlight">Item 1</li>
        <li class="ui-state-highlight">Item 2</li>
        <li class="ui-state-highlight">Item 3</li>
        <li class="ui-state-highlight">Item 4</li>
        <li class="ui-state-highlight">Item 5</li>
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have three divs, within a content div. Container width 70%. Within that I
I have the following divs: <div id=container> <div class=different_class></div> <div class=child></div> <div class=child></div> <div
I have 8 divs. Each div has the class 'pre-loader'. In addition to thas
I have 3 divs inside 1 div like so.. <div class=contentImages> <div id=slideshow> <img
I have two divs: <div class=outer> <div class=inner>Example</div> </div> And I have a jQuery
I have two divs: <div class=dialog large></div> and <div class=dialog></div> I have to remove
I have some divs: <div class=A>Target</div> <div class=A B>NotMyTarget</div> <div class=A C>NotMyTarget</div> <div class=A
I have a table like this below. And there is a div container with
I have 2 divs with 2 different class: div class name is: good div
I have two divs: one draggable and one droppable <div id=draggable class=block runat=server> </div>

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.