I’m using jQuery UI for a ranked ballot and you can see an example here.
I’d like to change it so that when the voter drags the candidate names, the names move but the numbers next to them don’t.
I know I could do this by hiding the list numbers and adding a separate, stationary list of numbers next to the sortable, but I was hoping for a simpler solution.
Any ideas for an easy way to accomplish this?
I found a pretty easy way to accomplish this. Suppose this is the list:
Then the following javascript will add a number to the left of each list item:
I’m still a noob with javascript and jQuery so I apologize for any silliness in the code.