Closed
Bug 49936
Opened 25 years ago
Closed 25 years ago
Checkbox Element array state not functioning properly
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: cole_n_g, Assigned: jst)
Details
Mozilla build #2000080712
When attempting to set checkbox values from the value of another checkbox, the
actions are reversed. For example, the following code should check all boxes in
the form depending on the value of 'CheckAll'. In NS4.7x it works properly. In
Mozilla, when the 'CheckAll' is checked, all others uncheck, and when unchecked,
all others check.
<html><head></head>
<body>
<script language="javascript">
function checkAll()
{
//alert(document.x.AllClick.checked);
for (var i = 0; i < document.x.elements.length; i++)
{
var e = document.x.elements[i];
if (e.name != 'AllClick')
{
e.checked = document.x.AllClick.checked;
}
}
}
</script>
<form name="x">
<input type="checkbox" name="AllClick" onClick="checkAll();">Click
All<br>
<input type="checkbox" name="y">One<br>
<input type="checkbox" name="z">Two<br>
</form>
</body>
</html>
Comment 1•25 years ago
|
||
Browser, not engine. Reassigning to DOM Level 0 -
Assignee: rogerl → jst
Component: Javascript Engine → DOM Level 0
QA Contact: pschwartau → desale
| Assignee | ||
Comment 2•25 years ago
|
||
Works for me, please reopen if it still doesn't work for someone...
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•