PDA

View Full Version : Dynamic dropdowns


Richsparov
12-27-2002, 12:52 PM
On a form I am asking my users to rate in order of importance 6 items. So i am thinking 6 drop downs which dynamically serve up the subsequent options after they have selected (I might not be being too clear).

The thing is I can cobble it together from a codepunk tutorial (http://codepunk.hardwar.org.uk/ajs24.htm) by using arrays which are displayed depending on what the user selects.

However with 6 options this offers a hell of a lot of options and does not seem the most elegant solution.

Is there a neater way than just writing loads of different arrays?

Thanks

Lee Brenner
12-27-2002, 02:27 PM
Instead of 6 drop-downs that dynamically serve up the remaining options depending on what has already been chosen you could perhaps provide a drop down containing 1 to 6 for each option. Then just make sure the user has selected a unique rank for each option.

Or, in the same vein you could provide text boxes and just make sure the user has entered in something from 1 to 6.

Also, you could do a multi-select that lists out the 6 choices and provide the user with buttons to move each item up or down in the list.

Hope this helped to spark some ideas!

Richsparov
12-27-2002, 02:53 PM
been through all the different options I'm afraid, I'm now just after code.