HTML Forms - Textarea containing list of options?

Associate
Joined
12 Aug 2004
Posts
1,009
Location
Glasgow, Scotland
Hi there,

Trying to create a nice little interface at the moment for adding, deleting and updating a massive drop-down menu database.

The idea i've come up with is something quite different to what i've seen being used before, but if i can pull it off it'll be really easy to manage the menu in future.

Basically a pop-up box appears with 2 text areas inside it, and a few buttons and input boxes underneath them, what i just can't figure out at the moment is how to get a list of around 5 pages appearing in one textarea, i guess what i'm wanting is a drop-down form except showing up to 10 options at the same time, instead of just one with a scrollbar on it. I've tried using a textarea and the drop-down attributes but can't for the life of me figure out this basic bit of html?

Could anyone give me a hand? I know i've seen it before but no websites i'm looking at (w3schools, html goodies) are showing how this can be done.

Thanks,

Steven.
 
What you need is:

Code:
<select name="widgets[]" multiple="multiple" size="10">
 .... options ....
</select>

*edit* you only need the multiple attribute if you want to select more than one row at a time.
 
Last edited:
Back
Top Bottom