By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,968 Members | 1,659 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,968 IT Pros & Developers. It's quick & easy.

Copying form field content

P: n/a
Hi there,

How can I copy content from one form field into another at the click of a
button?
Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Steve Darby wrote:
How can I copy content from one form field into another at the click
of a button?
<form ...> ...
<input type="text" ... name="foo"> ...
<input type="text" ... name="bar"> ...
<input type="button" ...
onclick="this.form.bar.value=this.form.foo.value" ...

</form>

ciao, dhgm
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.