Closed
Bug 30458
Opened 26 years ago
Closed 26 years ago
Cannot clear text box using control.value = ""
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
People
(Reporter: run2000, Assigned: pollmann)
Details
Attachments
(1 file)
|
1.41 KB,
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; N; NT4.0; en-US; m14)
BuildID: 2000030308
Using DOM level 0, I need to be able to clear text boxes using code such as:
document.library.productcode.value = "";
This doesn't work in Mozilla when the content of the text box has been entered
or edited by the user.
Reproducible: Always
Steps to Reproduce:
1. Open Mozilla
2. Go to the test case that I'll attach shortly
3. Enter some text into the text boxes
4. Press the "Add" button
Actual Results:
The text boxes are not cleared. Some debugging code I put to test the value of
these boxes steps in and reports the current value of the text boxes.
Expected Results:
The text boxes should be cleared. The debugging code should not activate.
Additional Information:
It's worth noting that this only occurs when the content of the text boxes is
altered by the user. When content is set using either the value attribute in
HTML, or altered using Javascript, the problem does not appear.
Works Correctly On:
IE 5.01, Opera 3.61, Netscape 4.72
| Reporter | ||
Comment 1•26 years ago
|
||
| Assignee | ||
Comment 3•26 years ago
|
||
This is already reported as bug 27951, which happily already has a fix.
Thanks! :)
*** This bug has been marked as a duplicate of 27951 ***
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
•