Priority Selections

Question: Your dynamic dropdown list code examples are amazing. I made them both work just as demonstrated, but I have a challenge they don't quite meet.

I'm trying to find a solution for listing out priority from 1 to 10 for 10 items. What I would LIKE to do is have the first dropdown have all ten options, then the next would have the remaining 9 based on what the user picked in the first, and so on down to 1.

Answer: I would do it with one dropdown and hidden input fields. As each entry is selected in the dropdown it would be removed from the dropdown list and added to the first empty hidden input field. Once all entries are selected then the hidden inputs would have the entries in their selected order. You could also add an undo button to revert back to start over.

I do have an Ordered Drop Down script that will do exactly what you are asking for but I think the hidden field solution is better where you want to select more than four or five entries.


This article written by Stephen Chapman, Felgall Pty Ltd.

go to top

FaceBook Follow
Twitter Follow