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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:21:25+00:00 2026-05-20T10:21:25+00:00

first I have a sortable container with class=viewport , then I want show each

  • 0

first I have a sortable container with class="viewport", then I want show each child’s id after be sorted, so the code:

$(".viewport").sortable({
                    connectWith: '.viewport',
                    revert: true,
                    stop: function () {
                            $sort_left_array=$(this).children();
                            $sort_left_arry.each(function(){
                                alert($(this).attr("id"));
                            });
                    }
                });

but after sorted, in firebug, it alerts “this.helper is null”, the alert function doesn’t work, also the page’s all animate don’t work.

by the way the items in sortable container is loaded with ajax when the page is loading,in the $(function(){}) part at the head of the page, does that matter?

Has anyone had this problem before? How can I solve this problem?

  • 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-20T10:21:26+00:00Added an answer on May 20, 2026 at 10:21 am

    There is a typo in the code in your question:

    $sort_left_array=$(this).children();
    $sort_left_arry.each(function(){
        alert($(this).attr("id"));
    });
    

    $sort_left_array != $sort_left_arry. Also, unless you’ve declared var $sort_left_array somewhere else in your code, you’re missing a var keywork in the stop callback.

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

Sidebar

Related Questions

First the example: http://jsfiddle.net/5S3mk/3/ I have a table whose columns need to be sortable
A have a razor view with a Telerik MVC grid. The first column has
I have an existing Git repository on Github. I wanted to reorganise my code,
I have an NSArray and in the first position in this array there is
I have an iPhone app which is aleready live on the app store...Now I
I want to merge items with same id into single item. The resultant item
I'm developing an Outlook 2010 Add-In in C# which adds a docked Custom Task
How to get rows from one file, that contains in another file Example, i
Please assume that I do not need to worry about development time and costs:
Witch one of this approaches you think is better ? This example is in

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.