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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:26:12+00:00 2026-06-11T11:26:12+00:00

I have a question about jQuery-sort. I have two columns, in the main column

  • 0

I have a question about jQuery-sort.

I have two columns, in the main column there is first one div in full width(class=firstitem), then four horizontal(class=middleitems), then four vertical in full width(class=bottomitems). So total of nine elements.
Like this in the maincolumn:

[ f i r s t ]
[2][3][4][5]
[  s  i  x  ]
[ s e v e n ]
[ e i g h t ]
[ n i n e   ]

And then a right columns with 10 items ju vertical.

If I lay item nr 2-5 vertical instead of horizontal everything works.
But I would like for the layout to stay like this when u dragg a new item into it. So if I for example dragg something in the middleitems, I want the last item in that to “move” down to the bottomitems. And if I dragg something into the topitem, I want the current topitem to move down to become the first middleitems and so on if you understand.
I’ve managed to change the cssclass of the dropped item to the correct one in “receive:”, but I dont know how to take it from there.
I need to somehow find the nextitem and “copy” and “paste” it to the next div, and so on.

And thats where I am atm.

Any ideas on how to make this work?
Its not the end of the world if it doesnt work but it would be nice if it did 🙂

  • 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-11T11:26:13+00:00Added an answer on June 11, 2026 at 11:26 am

    In your “drop” event handler … Depends on what the “this” and “event.target” point to …

    You should have a look to ‘manipulating’ & ‘traversal’ sections in jQuery documentation.

    look at

    • “before” here
    • “after” here
    • “appendTo” here
    • “prependTo” here

    Exemple :

    <div id="parent"> 
        <div id="one"></div>
        <div id="two"></div>
        <div id="three"></div>
    </div>
    

    –

    $('#three').after($('#one')); // push first div (id="one") at the bottom
    $('#one').appendTo($('#parent')); // push first div (id="one") at the bottom
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have one question about jquery ajax().. I created a table grid and there
I have a question about jQuery load best practice. Imagine the following situation: $(#div).on('click',
I have quick question about jQuery plugins, hope somebody out there has some advice.
hi i have a question about some jquery how do i select First-First of
i have one question about jQuery. If user select Presmerovanie with value 0 in
I have a question about some functionality I'm trying to add to my jQuery
I'm working on some JQuery code and I have a question about caching selectors.
I have a simple question about the expression in jquery to select a class
I'm new here and I'd like to ask a question about jQuery. I have
I have a question about usability/design. I currently am using some JQuery to hide/show

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.