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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:22:28+00:00 2026-06-11T17:22:28+00:00

link to jsFiddle : http://jsfiddle.net/k8wYF/1/ (working) var count; $(#sortable).sortable({ start : function(){ count =

  • 0

link to jsFiddle : http://jsfiddle.net/k8wYF/1/ (working)

var count;
$("#sortable").sortable({
    start : function(){
               count = 0;
            },
    change : function(){
                 count++;                
            },
    stop : function(){
                 alert(count);          
            }
});
$("#sortable").disableSelection();​

on single change

count : 1

but, i want to refresh sortable on sortableStart

link to jsFiddle : http://jsfiddle.net/k8wYF/ (not working)

var count;
$("#sortable").sortable({
    start : function(){
               $("#sortable").sortable("refresh");       //refresh sortable
               count = 0;
            },
    change : function(){
                 count++;                
            },
    stop : function(){
                 alert(count);          
            }
});
$("#sortable").disableSelection();​

then, on single change

count : 16  (multiple times)
  • 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-11T17:22:29+00:00Added an answer on June 11, 2026 at 5:22 pm

    From the docs

    Change

    This event is triggered during sorting, but only when the DOM position
    has changed.

    Refresh

    Refresh the sortable items. Custom trigger the reloading of all
    sortable items, causing new items to be recognized.

    What you are experiencing is normal. When refreshing, all items are moved into the expected positions, altering the DOM, thus triggering the changed event each time.

    If you want to add code to the change event, make sure it is code you want to execute at each change.

    If you want to add code to only execute when sorting is finished, add it to either stop or update.

    Update

    This event is triggered when the user stopped sorting and the DOM
    position has changed.

    Stop

    This event is triggered when sorting has stopped.

    Depending on what your code will do, make sure you add it to the appropriate event.

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

Sidebar

Related Questions

Please check this link http://jsfiddle.net/sasindu555/xaYTt/ I want to stop floating special_features div after scrolling
I have this code I'm working on, see link: http://jsfiddle.net/PqsAD/3/ The problem is depending
Here is a JSfiddle link to the script I am working with: http://jsfiddle.net/TSM_mac/bnjWQ/ To
for reference here is a jsfiddle link: http://jsfiddle.net/STmwz/4/ To start off with, there is
http://jsfiddle.net/SXrAb/ Following the jsfiddle link there is a simplified sample of what I need.
JS Fiddle Link http://jsfiddle.net/Xfvpu/1/ Okay so I have a document with xhtml doctype and
Here is the link to the jsfiddle: http://jsfiddle.net/d3xMZ/ when I hover, it does exactly
http://jsfiddle.net/FS4zT/ If you visit the above link you see what am describing below. Summary:
Here is the link for my html http://jsfiddle.net/9rprY/18/ In this I need the middle
Please refer the fiddle http://jsfiddle.net/HCqsM/5/ Here By clicking the 'click' link for the first

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.