Closed Bug 32844 Opened 25 years ago Closed 25 years ago

unable to change length property of <SELECT> element w/ JavaScript

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 32376

People

(Reporter: Richard.Rathmann, Assigned: jst)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; N; NT4.0; en-US) Mozilla/m13 BuildID: 2000032108 I am trying to dynamically populate a <SELECT> element (call it "A") with JavaScript based on an option chosen from another <SELECT> element (call it "B") in the form. However, only the first of the generated options is visible in "A" (page loads with one blank option in "A"). Reproducible: Always Steps to Reproduce: 1.Open "dyn_select.html" file (see attached URL) 2.Select one of two options in left <SELECT> box Actual Results: Only one option is made available in the right <SELECT> box Expected Results: Right <SELECT> box should be populated with 16 or more options, depending on left box selection Mozilla JavaScript engine does not seem to be able to change the value of the DOM node "document.HTMLFormElement.HTMLSelectElement.length" on line 17 (document.forms[0].colorName.length = colorGrp[i].color.length) of the "dyn_select.html" file. The JavaScript on this page does work, as written, in Netscape 3 and 4.7, as well as IE 4 and 5.
QA Contact: gerardok → desale
Target Milestone: ---
*** This bug has been marked as a duplicate of 32376 ***
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Duplicate verified.
Status: RESOLVED → VERIFIED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.