![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveRe: "Undefined" in scrolling_list
From: RobG <rgqld@iinet.net.au>
Date: Mon Jan 23 2006 - 02:00:10 CET
William wrote:
Why create a new option when you just want to modify the attributes of
var o = scrollList.options[scroll_list.selectedIndex];
Anyhow, if you wanted to create a new option, use:
var updated = new Option(t_area.text, t_area.value, false, true);
(false sets the option's defaultSelected property to false, true sets
> scroll_list.options[scroll_list.selectedIndex] = updated;
Because IE doesn't let you modify the properties of new options
-- RobReceived on Tue Feb 7 21:18:36 2006 |