P
Paul J. Lucas
I have a simple form that contains an INPUT element that has an
initial value.
<form name="Form">
<input name="Number" type="text" value="Hello">
</form>
When the form loads, I want all of the text in the field to be
automatically selected. How can I do this?
Doing a:
document.Form.Number.select();
selects the INPUT element itself, not the text inside of it.
- Paul
initial value.
<form name="Form">
<input name="Number" type="text" value="Hello">
</form>
When the form loads, I want all of the text in the field to be
automatically selected. How can I do this?
Doing a:
document.Form.Number.select();
selects the INPUT element itself, not the text inside of it.
- Paul