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)

x86
Windows 95
defect

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
*** Bug 6844 has been marked as a duplicate of this bug. ***
Target Milestone: M6
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Target Milestone: M6
Fixed on 5/20/99. The test did work for multi-selects before, just not for single selects.
Status: RESOLVED → VERIFIED
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.