Click and Drop Sorting

An Alternative to Drag and Drop

This application is a simple javascript alternative to a drag and drop application. The code is in PHP with 2 Javascript functions - one that is called wihen a list item is selected and the other when the item is inserted into a new position. For this example, the items to be sorted are are elements in a comma-separated text file.

Files and Folders for this demo:

 Drag and Drop Files

View Code

Leave a comment