Select options in order

Discussion in 'Javascript' started by Leonardo Calado, Aug 31, 2006.

  1. Hi, I have the following problem:

    I have 4 select fields like;

    <select id="choice_101" name="choice_101">
    <option label="Will not attend" value="Will not attend"
    selected="selected">Will not attend</option>
    <option label="First Choice" value="First Choice">First
    Choice</option>
    <option label="Second Choice" value="Second Choice">Second
    Choice</option>
    <option label="Third Choice" value="Third Choice">Third
    Choice</option>
    <option label="Fourth Choice" value="Fourth Choice">Fourth
    Choice</option>
    </select>

    choice_102, choice_103 and choice_104

    The user must bem select options in this 4 files in order, for example,
    he must bem select first "First Choice" next "Second Choice"... The
    options not be same.

    Somebody help me?
    Leonardo Calado, Aug 31, 2006
    #1
    1. Advertising

  2. Leonardo Calado

    RobG Guest

    Leonardo Calado wrote:
    > Hi, I have the following problem:
    >
    > I have 4 select fields like;


    Select elements :)


    > <select id="choice_101" name="choice_101">
    > <option label="Will not attend" value="Will not attend"
    > selected="selected">Will not attend</option>


    The purpose of the label attribute is to supply different display text
    (usually shorter) than the option element's content. There doesn't
    seem much point in using it if they are the same, it just adds page
    bloat.


    > <option label="First Choice" value="First Choice">First
    > Choice</option>
    > <option label="Second Choice" value="Second Choice">Second
    > Choice</option>
    > <option label="Third Choice" value="Third Choice">Third
    > Choice</option>
    > <option label="Fourth Choice" value="Fourth Choice">Fourth
    > Choice</option>
    > </select>
    >
    > choice_102, choice_103 and choice_104
    >
    > The user must bem select options in this 4 files in order, for example,
    > he must bem select first "First Choice" next "Second Choice"... The
    > options not be same.


    Why do you care what order they are selected in? All you really want
    is to know that the user has made some choices, who cares if they
    select their fourth preference before their first?

    If you want to proceed, use a single select with the available choices.
    Let the user select one as their first choice, then have an "add
    choice" button to put the value into a hidden field and remove the
    choice from the list of available choices, or give them an error
    message if they've already used that choice.

    Reflect the selected values and their order in the page somewhere. You
    might also want to let users modify their choice order.


    --
    Rob
    RobG, Sep 1, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Leif K-Brooks
    Replies:
    5
    Views:
    431
    Sid Ismail
    Nov 19, 2003
  2. Cliff  Martin
    Replies:
    1
    Views:
    3,021
    Larry Smith
    Jan 31, 2007
  3. jacksu
    Replies:
    0
    Views:
    496
    jacksu
    Oct 9, 2007
  4. Utkado
    Replies:
    2
    Views:
    2,052
  5. Bryan Richardson
    Replies:
    6
    Views:
    269
    Bryan Richardson
    Feb 25, 2008
Loading...

Share This Page