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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:13:59+00:00 2026-05-12T06:13:59+00:00

I have DIVs with OL>LI lists in them, the lists are each sortable and

  • 0

I have DIVs with OL>LI lists in them, the lists are each sortable and I connect them together so the user can move and LI from one list to another.. seems like a common thing to do.

When the sortable list receives an item, that item loses its “sortability”..or atleast the handle is not working on it.

Here’s some code to show you how I setup my sortable lists:

$(".sortable").sortable({
  connectWith: ".sortable",
  revert: true,
  opacity: 0.5,
  handle: $('.sample_view_image span img'),
  cursor: 'move',
  receive: function(event, ui) {
    $(ui.item).formatSampleToGallery();
    $(ui.item).sortable("refresh"); //thought this would reconnect everything
  }
});
  • 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-12T06:13:59+00:00Added an answer on May 12, 2026 at 6:13 am

    First, I was referencing $(ui.item) which isn’t sortable to begin with. duh.

    Second, when I used the right selector $(ui.item).parent(), the “refresh” still didn’t properly re-establish the “handle”. It seems like “refresh” should take care of this for me, am I misusing it?!

    I had to use the following code to make it work properly, which feels kinda dirty…:

    $(".sortable").sortable({
      connectWith: ".sortable",
      revert: true,
      opacity: 0.5,
      handle: $('.sample_view_image span img'),
      cursor: 'move',
      receive: function(event, ui) {
        $(ui.item).formatSampleToGallery();
    
        $(ui.item).parent().sortable({
          connectWith: ".sortable",
          revert: true,
          opacity: 0.5,
          handle: $('.sample_view_image span img'),
          cursor: 'move'
        });
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my app I have 2 divs, one with a long list of products
I have a list of Divs within another div and I want to only
I have a bunch of divs with weird id and each of them contains
I have two divs. One of them contains an input field the other a
Suppose you have a list of items, and put them in divs. The list
I have a list which have divs inside it.. Now when i use nested
I have an containing a list of divs that jQuery turns into progress bars.
I have a script which hides (display:none) certain divs in the list on page
I have a list of images inside divs and a jquery ui slider, when
I have an unordered list and each of the item in the ul has

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.