[thelist] Multi dynamic select boxes and IE

Chris Heilmann lists at onlinetools.org
Wed Jan 5 08:43:37 CST 2005


> Richard Livsey <richard at livsey.org> wrote:
>
>> Anyone any ideas on why it's doing this, and am I missing something that
>> IE needs to display it as a multi select box from the get go?
>
> Well, that's a wacky one you've found. Well done!
>
> The trick is: IE will only allow a select element to be mutated between
> select-one and select-many when the element is actually on the page. Add
> the element to the document tree *before* writing to the multiple
> property and it works fine.

That is actually a really complex way to simulate a list of checkboxes.
Multi select dropdowns are IMHO a useless pain to use on the client and
backend.

-- 
Chris Heilmann
http://icant.co.uk/ | http://www.onlinetools.org/



More information about the thelist mailing list