Closed
Bug 6843
Opened 26 years ago
Closed 26 years ago
document.aForm.aSelect.options[document.aForm.aSelect.selectedIndex].selected is false
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: martin.honnen, Assigned: vidur)
References
Details
When checking
document.aForm.aSelect.options[document.aForm.aSelect.selectedIndex].selected
for a SELECT in a FORM e.g.
<FORM NAME="aForm">
<SELECT NAME="aSelect">
<OPTION VALUE="Kibology0">Kibology for all. 0
<OPTION VALUE="Kibology1">Kibology for all. 1
...
</SELECT>
</FORM>
<A HREF="javascript: void 0"
ONCLICK="alert(document.aForm.aSelect.options[document.aForm.aSelect.selectedIndex].selected); return false;"
>
aSelect.options[document.aForm.aSelect.selectedIndex].selected
</A>
it shows
false
which is illogical.
Happens with M5 on windows 95
Updated•26 years ago
|
Target Milestone: M6
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Target Milestone: M6
Assignee | ||
Comment 2•26 years ago
|
||
Fixed on 5/20/99. The test did work for multi-selects before, just not for
single selects.
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 3•26 years ago
|
||
Working fine now.
Test to be conducted.
<HTML>
<HEAD><TITLE>Select value test</TITLE></HEAD>
<SCRIPT LANGUAGE="JavaScript1.1">
function report(text)
{
var value=document.aForm.result.value;
var msg= value+ " " +text;
document.aForm.result.value=msg;
}
</SCRIPT>
<BODY>
<FORM NAME="aForm">
Result Text Box:<INPUT TYPE=text name="result" size=60><br><br>
<SELECT NAME="aSelect">
<OPTION VALUE="Kibology0">Kibology for all. 0
<OPTION VALUE="Kibology1">Kibology for all. 1
...
</SELECT>
</FORM>
<A HREF="javascript: void 0"
ONCLICK="report(document.aForm.aSelect.options[document.aForm.aSelect.selectedIn
dex].selected); return false;"
>
aSelect.options[document.aForm.aSelect.selectedIndex].selected
</A>
<input type="reset" value="Reset">
</BODY>
</HTML>
Marking bug as verified.
You need to log in
before you can comment on or make changes to this bug.
Description
•