[thelist] Crossbrowser options.add() method

Pavel Dudrenov dudrenov at gmail.com
Tue Dec 6 11:27:13 CST 2005


select.options is a collection.

So you can do something of this sort.
select.options[select.options.length] = new Option('foo','bar');


On 12/6/05, Mark Marlow <mark at testwiz.com> wrote:
> Hi All,
>
> Safari 1.3 does not play well with options.add() method.  Any pointers to  a
> cross browser replacement for options.add() that supports positional insert?
>
> Thanks!
>
> --
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>



More information about the thelist mailing list