Closed Bug 45284 Opened 26 years ago Closed 26 years ago

CheckBox checked state updated after onClick()

Categories

(Core :: Layout: Form Controls, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 42972

People

(Reporter: kinmoz, Assigned: rods)

Details

Attachments

(1 file)

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>
Attached file Simple test case. —
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 42972 ***
Updating QA contact.
QA Contact: ckritzer → bsharma
Verified dupe.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: