Re-selecting values in multi-select menu

Discussion in 'HTML' started by PW, Sep 5, 2004.

  1. PW

    PW Guest

    I use a multi-select menu in an ASP so the user can pick several values.

    <select multiple name="lbErrorType" size="12">

    However, after I have saved the records to the DB, and the user comes back
    to edit a prior record, I re-populate the multiple select box and do a
    "<option selected>" during a DO loop, for each matching record that is saved
    to the DB.

    <option selected>

    But only the last value is selected !

    How do I get the select menu to select ALL the appropriate values ?
     
    PW, Sep 5, 2004
    #1
    1. Advertising

  2. PW

    PW Guest

    Found it, it was table navigation logic. thanks anyways.
     
    PW, Sep 5, 2004
    #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. Brian Henry
    Replies:
    1
    Views:
    397
    bruce barker
    Dec 12, 2003
  2. PW
    Replies:
    3
    Views:
    117
  3. palmiere
    Replies:
    1
    Views:
    413
    Erwin Moller
    Feb 9, 2004
  4. Gumtree
    Replies:
    3
    Views:
    256
    Matt Kruse
    Nov 10, 2004
  5. Bonge Boo!
    Replies:
    5
    Views:
    207
    Bonge Boo!
    Apr 25, 2005
Loading...

Share This Page