Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Selecting multiple things in a select box

    How do I allow the user to select multiple values in a select box? I have seen this done before where the user can press control and click on extra selections.

    Thanks for the help

    Darksbane

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    <select type="multiple">

    I believe.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    FL, USA
    Posts
    734
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Actually its

    <select multiple>

    I tried with the type="multiple" doesn't work but the the way it is uptop works for me just great. So i'm sure it'll work for you Darksbane
    CYWebmaster.com - See why we dot com!!
    ACJavascripts.com - Cut & Paste Javascripts!
    SimplyProgram.com - Personal Blog

  • #4
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Originally posted by ACJavascript
    Actually its

    <select multiple>
    Oh yeah - I don't use that widget too often if I hadn't made that clear for my lack of an accurate answer above.

    Anyway, to be XHTML compliant, you'd need to make it:

    <select multiple="mutiple">


  • #5
    New Coder
    Join Date
    Jun 2002
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Cool that works, now just one other question. How do I get the HTTP_POST_VAR to hold all the values selected? Currently it only holds the last value selected.

    Thanks,
    Darksbane


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •