[thelist] New select option

Mark Kennedy mark at eurogamer.net
Wed Mar 26 09:02:26 CST 2003


Try the add method:

http://msdn.microsoft.com/workshop/author/dhtml/reference/collections/options.asp

Mark


On Wed, 26 Mar 2003, Stevenson Ngila wrote:

>
>am using:
><><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><>
><<><><><<><><><<><><><
>oDestination.options[ oDestination.options.length ] = new Option(
>oOption.text, oOption.value );
><><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><>
><<><><><<><><><<><><><
>
>to dynamically create a new option in javascript but am getting the
>following error:
>
><><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><>
><<><><><<><><><<><><><
>object doesn't support this property or method
><><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><>
><<><><><<><><><<><><><
>
>What could be the problem? Any ideas?
>
>Thanks,
>Stevenson Ngila
>Footman-Walker Associates Ltd
>http://www.footman-walker.co.uk
>
>
>-- 
>* * 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