[thelist] select list

Stevenson Ngila Stevenson at epr.footman-walker.com
Fri Jan 3 08:57:01 CST 2003

but it doesn't show me how to add another option to be the first without
replacing the first one. With the code i provided, it adds the option at the

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Peter-Paul Koch
Sent: 03 January 2003 17:25
To: thelist at lists.evolt.org
Subject: Re: [thelist] select list

>if i have the following select list:
>how can i add another option e.g. <option value='4'>steve</option> so that
>it comes to first position without replacing <option value='1'>1</option>
>using  javascript i.e.

See http://www.xs4all.nl/~ppk/js/index.html?options.html for the code you

>based on the js code below:
>			var oOption;
>			oOption = opener.document.Call.numbers.options;
>			oOption[oOption.length - 1].text = 'steve';
>			oOption[oOption.length - 1].value = 4;

You aren't creating a new Option object. See the page above for more

ppk, freelance web developer
Interaction, copywriting, JavaScript, integration
Column "Keep it Simple": http://www.digital-web.com/columns/keepitsimple/
Nieuw: Jaaroverzicht 2002

MSN 8 with e-mail virus protection service: 2 months FREE*

* * Please support the community that supports you.  * *

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