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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:24:55+00:00 2026-06-06T15:24:55+00:00

Hey all I’m extremely new to jquery and ajax and I’m looking for some

  • 0

Hey all I’m extremely new to jquery and ajax and I’m looking for some advice on how to do this correctly.

I had a div that I was using sortable on so I could arrange things as needed. It looked something like:

$('#resource-detail-content).sortable({

And then in my ajax data I had something like:

data: $('#resource-detail-content').sortable('serialize'),

Which worked fine but it made sense to disaggregate the data and I broke the div into two separate div’s and used the connectWith to allow the dragging on content between the two:

$('#resource-detail-content,#resource-detail-content2').sortable({
  connectWith: '#resource-detail-content,#resource-detail-content2',

What I’m trying to figure out now is how to send the data of both div’s in my ajax put. I tried the obvious:

data: $('#resource-detail-content, #resource-detail-content2').sortable('serialize'),

But no luck. I’d definitely appreciate any assistance.

Cheers,
Sean

  • 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-06T15:24:57+00:00Added an answer on June 6, 2026 at 3:24 pm

    Firstly you should use classes instead of IDs, it’d be more flexible.

    And I think the problem comes from the fact that you have 2 object, the data content is overwritten after each call.

    You should use a function, something like this:

        data : getContent(),
    
        function getContent() {
            var data = "";
    
            $(".resource-detail-content").each(function(){
            if (data == "")    
               data += $(this).serialize();
            else 
               data += "&" + $(this).serialize();
    
            });
           return data;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey all, I basically output content into a div like this using jquery: var
Hey all i am in need of some help getting my code working correctly
Hey all. I just started looking into the cocos2d library. I've heard that it's
Hey all i am in need of some help with this code in order
Hey all, I would like some advice from the programming community. I am building
Hey all, I'm still relatively new to Java, and looking for a sanity check.
Hey all i am trying to find some code that would allow me to
Hey All, I currently use Google's API to include jQuery into my sites like
Hey all this is the first time i am calling a stored procedure via
Hey all i have a JSFiddle that i have been working on with trying

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.