drop down list with multiple selection

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
my editor is easyhtml
when i add the multiple parameter to the drop down list it changes it from a
drop downlist
to a single line list, with the up down arrows, i want have the multiple
capability with a dropdown
list and also be
able to limit the number of selections allowed, and then have the previous
selections highlighted
if you go back to change or check the selections you already made, i know
i've seen this on other
web sites
is this a limitation of my editor or do i have to do this in java script?

Re: drop down list with multiple selection

Quoted text here. Click to load it

Dropdown boxes should *not* support multiple selections. It's just
unintuitive (you have to expand the box everytime you want to select
something, which is two-clicks minimum). You'll have to settle with a
listbox... remember that this won't necessarily show up the same on all

<select multiple size="3">
    <option value="1">Option 1</option>
    <option value="2">Option 2</option>
    <option value="3">Option 3</option>
    <option value="4">Option 4</option>

This will create a listbox 3 rows high that allows multiple selections. On
Windows the user has to hold down the CTRL key while selecting additional
options. You can set the restrictions on how many options are selected
inside your form processing script, or you can use Javascript as well... but
you'll have to visit comp.lang.javascript for info on that.

IMHO you should be using checkboxes:

<input type="checkbox" value="1">Option 1<br>
<input type="checkbox" value="2">Option 2<br>
<input type="checkbox" value="3">Option 3<br>
<input type="checkbox" value="4">Option 4

Which will be easier to code with Javascript anyway...

Site Timeline