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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:08:24+00:00 2026-05-26T12:08:24+00:00

I am using jQueryUI 1.8.14 and I would like to understand how to use

  • 0

I am using jQueryUI 1.8.14 and I would like to understand how to use helper methods related to a jQueryUI sortable list:

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)

For example, if I run the alert(ui.position) like the following

$jQ("#sortable").sortable({
  update: function(event, ui) {
    alert(ui.position)
  }
});

I get an alert message like this: “[object Object]“… how can I inspect that object (eg: in order to retrieve the position value – that is, an integer value)?

  • 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-26T12:08:25+00:00Added an answer on May 26, 2026 at 12:08 pm

    Use console.log on it, then you can see what the object contains 🙂

    $("#sortable").sortable({
      update: function(event, ui) {
        alert("top:" + ui.position.top + " left:" + ui.position.left);
      }
    });
    

    Found this by doing: console.log(ui.position);

    Result: Object { top=26, left=10}

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

Sidebar

Related Questions

I am using jQueryUI 1.8.14. I would like to implement a sortable list and
I'm using Jqueryui connected sortable lists and I would like to drop elements only
I'm using this plugin: http://jqueryui.com/demos/autocomplete/#remote Works great but I would like to use the
I would like to mimic a standard JavaScript confirm() using a jQueryUI dialog. I
I am using jqueryui.com's autocomplete function and I would like it to add the
i would like to use the scroller of jquery UI : http://jqueryui.com/demos/slider/#side-scroll but with
I have a question, Im using jquery, jqueryui and basic ajax. I would like
I am using Ruby on Rails 3.1.1 and jQueryUI 1.8.14. I would like to
I am using Jquery UI buttons ( http://jqueryui.com/demos/button/ ). I would like to know
I'm using http://jqueryui.com/demos/tabs/#manipulation . I want to get an title of current selected tab

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.