Ben Foster 10/13/2011

jQuery sortable - getting the new and original index

Read Original

This article explains how to implement drag-and-drop sorting with jQuery UI's sortable plugin. It details methods like `toArray` for sending full list orders and demonstrates using the `start` and `stop` events to capture an item's original and new index, then POST only the changed data to a server via AJAX for efficient updates.

jQuery sortable - getting the new and original index

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes