Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 3.33 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-23-2002, 12:57 AM   PM User | #1
Darksbane
New Coder

 
Join Date: Jun 2002
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Darksbane is an unknown quantity at this point
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
Darksbane is offline   Reply With Quote
Old 06-23-2002, 01:17 AM   PM User | #2
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
<select type="multiple">

I believe.
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Old 06-23-2002, 04:17 AM   PM User | #3
ACJavascript
Regular Coder

 
Join Date: Jun 2002
Location: FL, USA
Posts: 734
Thanks: 0
Thanked 0 Times in 0 Posts
ACJavascript is on a distinguished road
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
ACJavascript is offline   Reply With Quote
Old 06-23-2002, 04:55 AM   PM User | #4
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
Quote:
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">

__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Old 06-23-2002, 04:44 PM   PM User | #5
Darksbane
New Coder

 
Join Date: Jun 2002
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Darksbane is an unknown quantity at this point
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
Darksbane is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:47 AM.


Advertisement
Log in to turn off these ads.