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
  • 1 View
  • 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

I have a unordered list: <ul id=sortable> <li id=1 class=ui-state-default>First <a href='#' title='delete' class=itemDelete>x</a></li>
First I have install Mac 10.6.3 on my system now I want to install
I have multiple JQuery sortable lists that connect with each other... They allow you
I have a list made as sortable using jQuery UI. The first list item
i have three list that all of them are connected with jquery-ui sortable, first
First the example: http://jsfiddle.net/5S3mk/3/ I have a table whose columns need to be sortable
I have seen this code Sortable JqGrid using LINQ to MySQL (DbLinq) and Dynamic
I have this jquery code: <script> $(function() { $( #sortable ).sortable({ stop: function(event, ui)
I have the following HTML logical blocks : The first one is a sortable
I have the following code which applies the jQuery UI Sortable plugin to all

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.