Closed Bug 35593 Opened 25 years ago Closed 25 years ago

Length Propertry of select box can not be modified

Categories

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

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 32376

People

(Reporter: sean.connally, Assigned: jst)

Details

When attempting to dynamically adjust select boxes of a form, the length property gets set to 0 reguardless of value trying to set. the following is an example that will not work: <form method="post" action="submit.htm" name="mainform"> <select name="selbox"> <option value="1">Test1</option> <option value="2">Test2</option> <option value="3">Test3</option> <option value="4">Test4</option> </select> <script> document.mainform.selbox.length=2; document.mainform.selbox.options[0].value='5'; document.mainform.selbox.options[0].text='Test5'; document.mainform.selbox.options[1].value='6'; document.mainform.selbox.options[1].text='Test6'; </script>
Not JS Engine -> DOM0
Assignee: rogerl → jst
Component: Javascript Engine → DOM Level 0
QA Contact: pschwartau → desale
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
This is a dup of 32376, markign as such. *** This bug has been marked as a duplicate of 32376 ***
Verified Duplicate
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.