Auto-resort numbers in selectable numbered list


/ Published in: JavaScript
Save to your folder(s)

When you have a list of items to sort (say, three items, each with a drop-down from 1-3), this script will (when one of the item drop-downs is changed) automatically change the others to have appropriate numbers. For example, if your list is numbered: 1, 2, 3...and you change the second item to 3, the list will then be numbered 1, 3, 2.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.