由买买提看人间百态

topics

全部话题 - 话题: texboxes
(共0页)
t**i
发帖数: 9
1
How do you clear all the texboxes and dropdown lists on a form? Assume
that each list has, as its first entry, a "Select One" or "Choose One"
entry. Note that I don't mean resetting the form to its original values, but
actually clearing the entries.
c*****t
发帖数: 1879
2
1. Use .value for input fields and set to ''.
2. For select, the code is browser dependent. So, the easiest way
is actually put the select box inside another container. Then,
to clear the entries, just replace .innerHTML w/ an empty selection
box.
(共0页)