concept sortable element in category javascript

appears as: sortable element, sortable elements, sortable elements
Prototype and Scriptaculous in Action

This is an excerpt from Manning's book Prototype and Scriptaculous in Action.

There are a fair number of options available for sortable elements, none of which are required as long as your sortable element is a list element containing list item (<li>) elements. We saw an example of that in our simple example, where the second list, composed of <div> elements, required at least one option to function correctly.

The ID of each child in the sortable element is matched against a pattern consisting of a prefix, followed by an underscore, followed by the rest of the identifier. If the ID does not match that pattern, the child is ignored. If the ID matches the pattern, the prefix is stripped (including the underscore), and the remainder of the ID serves as the query parameter value for that child.