In a html table I have in every row a cell with its own position number. How can I refresh this position number correctly after sorting with jQueryUI?
This is my simple
If anybody liked the above answer as I did, here's the Coffeescript
jQuery -> $("ul.sortableEdit").sortable stop: (event, ui) -> $('ul.sortableEdit li').each( -> $(this).children('input.sortableItemPos').val($(this).index()) )