Closed
Bug 28143
Opened 25 years ago
Closed 24 years ago
document.forms.formname.selectbox.selectedIndex=-1
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: displague, Assigned: pollmann)
References
Details
Attachments
(1 file)
610 bytes,
text/html
|
Details |
<form name="test"> <select name="sel" multiple> <option selected>1</option> <option selected>2</option> <option selected>3</option> <option selected>4</option> </select> <input type="button" onclick="javascript:document.forms.test.sel.selectedIndex=-1;" value="clear"> In netscape this will clear the select box - as i have found no other way to do this besides looping through all options and unselected them, this behavior should be supported. I did not see anything about it in the w3c dom, but that doesn't mean much.
Updated•25 years ago
|
Component: Core → DOM Level 0
Product: Rhino → Browser
Comment 1•25 years ago
|
||
Reassign to DOM component.
Assignee: norris → vidur
QA Contact: cbegle → desale
Assignee | ||
Comment 3•24 years ago
|
||
Fix checked in, I'll attach the test case...
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•24 years ago
|
||
Assignee | ||
Comment 5•24 years ago
|
||
Clicking on the "Clear buttons" in the testcase should deselect any selected options in the select. If so, this bug is fixed. Thanks!
You need to log in
before you can comment on or make changes to this bug.
Description
•