Here is an interesting use of JavaScript: reordering items with drag and drop. The implementation itself in my page works fine, but is there a way to determine in which order the user put the items?
I’m asking because I want to load and save the item order in a cookie.
UPDATED 2012
FULL WORKING DEMO & SOURCE
get the index position of the elements try to read this:
COOKIE plugin for jquery:
JQUERY:
HTML:
PHP:
this is just an example but you got the idea: you may want use a database instead and use AJAX for get back the lis: