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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:30:56+00:00 2026-06-05T11:30:56+00:00

I am working on a drag and drop layout tool for some customized PDF

  • 0

I am working on a drag and drop layout tool for some customized PDF generation and I would like to be able to serialize my Div’s after they have been dragged and dropped using jQuery UI.

I have all of the code working except the serializing of the CSS of the elements – does anyone know of a plugin to do this before I write one?

  • 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-05T11:30:58+00:00Added an answer on June 5, 2026 at 11:30 am

    Assuming you have html for sortable elements similar to this:

    <ul id="sortable_list">
      <li id="sortable_item_1"> Item 1 </li>
      <li id="sortable_item_3"> Item 3 </li>
      <li id="sortable_item_4"> Item 4 </li>
      <li id="sortable_item_2"> Item 2 </li>
      <li id="sortable_item_5"> Item 5 </li>
    </ul>
    

    To serialize the sorted list, you need to first make the list sortable, and then call the serialize method on it:

    <script>
      $(function() {
        $( "#sortable_list" ).sortable();
        var items_order = $( "#sortable_list" ).sortable('serialize'); // remember to make the list sortable before calling this
      });
    </script>
    

    To get the order on the server side (assuming you’re using PHP), you can send items_order as as a POST variable, and parse it:

    parse_str($_POST['items_order'], $neworder);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to drag and drop using the Robot class in Java. For
I am working on a large application and am adding some drag/drop functionality to
I am currently working on a drag n drop application and I would really
How would I drag and drop something into a static control? It looks like
I'm working on Drag'n'Drop interface. Everything works OK. I need help with some additional
I'm working on this drag and drop application with jquery/javascript, and I'm having to
I am working on a project. It does with drag and drop this is
I working on Eclipse plugin and i need to perform drag&drop support to editor.
Drag is not working after dropping on the area. I have used Jquery UI
I'm trying to implement drag/drop in my TreeView and have it all working except

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.