javascript thread: clone OPTIONS...
>From: "Walter Torres" <walter@t...>
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] clone OPTIONS...
>Date: Sun, 16 Feb 2003 17:26:56 -0600
>
>I would like to clone the OPTIONS from one SELECT to another.
>
>Now, before you give me the standard answers, I've added a little wringle
>to
>this.
>
>This is my OPTION tag...
>
> <option value="SC" sortKey="10"> Scorecard
>
>Notice I added a new attribute to the TAG!
>
You can use cloneNode().
var oNewOption = objldList.options[x].cloneNode(true);
Be careful if you are trying to move options between frames, you will need
to be more careful. See the MSDN DHTML reference.
Joe
_________________________________________________________________
Overloaded with spam? With MSN 8, you can filter it out
http://join.msn.com/?page=features/junkmail&pgmarket=en-gb&XAPID=32&DI=1059