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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:47:45+00:00 2026-05-16T05:47:45+00:00

Sorry, back agin How can I get at the last sortable item. I am

  • 0

Sorry, back agin

How can I get at the “last” sortable item. I am dragging from one list 2 another but I need/want to append the “length” to the last dragged item which may not be the last item in the “dropped” list – hope you understand.

some idea of code

    $j(function() {
        $j("#id_section_layout").sortable({
        connectWith: '.colunm,.layoutcolunm,#layoutbin',
        helper: 'clone',
        receive: function(event, ui) {
        $j("#id_section_layout .content_options").children().show();
        var val= $j("#id_section_layout .content_options").length;
// .. I want to append val to the LAST dragged/dropped item
//.. If I do this it is always to the "last" item in the list which may not be the last dragged item -
             $j("#id_section_layout .content_options").last().append(val);
//.. So is there a way to get the last dragged item?
        }
        });
});
  • 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-16T05:47:46+00:00Added an answer on May 16, 2026 at 5:47 am

    Inside your receive handler you can use ui.item, there are several elements available off the ui object your function receives:

    • ui.helper – the current helper element (most often a clone of the item)
    • ui.position – current position of the helper
    • ui.offset – current absolute position of the helper
    • ui.item – the current dragged element
    • ui.placeholder – the placeholder (if you defined one)
    • ui.sender – the sortable where the item comes from (only exists if you move from one connected list to another)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry if my last question is very similar, but I have another query of
Sorry, I'm sure this is simple but I'm tired and can't figure it out.
Sorry for the unhelpful title, but hopefully I can explain this well enough. Lets
I'm back with another (possibly) silly question. sorry. I have a pretty complicated query
// Major edit, sorry in bed with back pain, screwed up post One of
Sorry, new to oracle. I'd like to get current and the last active record
Sorry if this has been asked before but I've tried searching and can't find
Sorry If something like this has already been asked, but I can't find exactly
Sorry if this is obvious, but I'm struggling with how to extract components from
Sorry for this not being a real question, but Sometime back i remember seeing

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.