Your host:
Stephen Chapman
Stephen Chapman

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.
anonymous

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.

go to top

Add to del.icio.us

Remortgage - Car Insurance - Savings Accounts - Secured Loans