Copying form field content

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve Darby

    #1

    Copying form field content

    Hi there,

    How can I copy content from one form field into another at the click of a
    button?


  • Dietmar Meier

    #2
    Re: Copying form field content

    Steve Darby wrote:
    [color=blue]
    > How can I copy content from one form field into another at the click
    > of a button?[/color]

    <form ...> ...
    <input type="text" ... name="foo"> ...
    <input type="text" ... name="bar"> ...
    <input type="button" ...
    onclick="this.f orm.bar.value=t his.form.foo.va lue"[color=blue]
    > ...[/color]
    </form>

    ciao, dhgm

    Comment

    Working...