Suppose an entry is made in a textbox. Is it possible to retain the same entered text in a second text box? If so, how is this done?
Well, you have two textboxes with the same ID. An Id should be unique, so you should prbably change this.
To set the value from one text box to another a simple call to getElementById()
should suffice:
document.getElementById("n1").value= document.getElementById("n2").value;
(assuming, of course you give your secodn text box an id of n2
)
Tie this up to a button click to make it work.