Closed
Bug 45284
Opened 26 years ago
Closed 26 years ago
CheckBox checked state updated after onClick()
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
People
(Reporter: kinmoz, Assigned: rods)
Details
Attachments
(1 file)
|
351 bytes,
text/html
|
Details |
If I load the HTML below into the browser, clicking on the Checkbox displays the
wrong check state for the checkbox. It displays the state of the checkbox before
it was clicked in.
<html>
<head>
<script>
function UpdateState(cb)
{
if (cb.checked)
document.form1.tf.value = "Checked";
else
document.form1.tf.value = "Unchecked";
}
</script>
</head>
<body>
<form name=form1>
CheckBox:
<input type=checkbox name=cb onClick="UpdateState(this)">
<input type=text name=tf></td>
</form>
</body>
</html>
| Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•