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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:10:17+00:00 2026-05-26T03:10:17+00:00

I have a jQuery drag and drop based panel working perfectly. http://jsfiddle.net/pzRgT/ It stores

  • 0

I have a jQuery drag and drop based panel working perfectly.

http://jsfiddle.net/pzRgT/

It stores multiple draggable elements over multiple lists. I’m unsure how I would store the order and send that to my server such that I can store the data and load it back later to re-create the order.

How can I store the elements and their order over multiple boxes such that I can “save” and “load” from ajax?

  • 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-26T03:10:18+00:00Added an answer on May 26, 2026 at 3:10 am

    You could add id attributes to the <ul>s to identify the groups, id attributes to the <li>s to identify them. Then spin through the <ul>s when you want to save it and convert the current state to a JavaScript object; once you have that object you can send it back to the server as JSON, unpack it on the server, and store it in your database.

    Something like this:

    $('#submit').click(function() {
        var groups = { };
        $('.sort').each(function() {
            var a = [ ];
            $(this).find('li').each(function() {
                a.push(this.id);
            });
            groups[this.id] = a;
        });
        // Send groups back to the server using $.ajax()
    });
    

    Demo (open your console please): http://jsfiddle.net/ambiguous/FMKmj/

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

Sidebar

Related Questions

I have a problem with jQuery Drag&Drop. I have a draggable element and lots
I have two li elements which are jQuery draggable. When I drag and drop
first, have to look at this dragndrop ( http://code.google.com/p/jquery-drag-and-drop/ ) what i want to
I have a problem: I've add a Jquery UI drag-n-drop widget to my page,
I want to do a simple drag-drop using jQuery. I have not done anything
I am using jquery drag-and-drop and I have 3 divs. I want the gallery
I'm trying to have both mouseover events and drag-and-drop using JQuery and JQuery UI.
I have a drag and drop script using an older version of jquery which
i have done drag and drop using with jquery. here i have issue that
I have done drag and drop work using with jquery plug-in, Jquery: $(document).ready(function() {

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.