I want the user to be able to reorder the list in a click event. Here I installed a very simple jsFiddle:
http://jsfiddle.net/8vWXZ/2/
So, in this example, I would like to move the clicked element li and its contents to a position higher in the DOM. I believe that, strictly speaking, it moves down the index of elements li.
This will be expanded later to include buttons that move li items up and down, and a submit button that preserves the order / state of list items.
I found a lot of information about drag and drop (which is not required), but not much about this function. If someone could point me in the right direction, that would be great :)
source share