Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple selections from a select list 2

Status
Not open for further replies.

tviman

Programmer
Jul 25, 2002
2,123
US
How do you code a select list so that you can choose multiple selections from the list?

There's always a better way. The fun is trying to find it!
 

Just add the
Code:
multiple
attribute to your select list:

Code:
<select name=&quot;wibble&quot; multiple>
   <option value=&quot;1&quot;>1</option>
   <option value=&quot;2&quot;>2</option>
   <option value=&quot;3&quot;>3</option>
</select>

Hope this helps!

Dan
 
Dan...

Thanks loads! I wasn't aware of the &quot;multiple&quot; attribute.
Have a star on me!

There's always a better way. The fun is trying to find it!
 
Thanks to you too, Chris. This is the first time I've ever been asked by a client to provide multiple selection capabilities. I had searched through my library of manuals and couldn't come up with anything. Tek-Tips comes through again!

There's always a better way. The fun is trying to find it!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top