|
Posted by Moot on 12/21/06 12:59
Johnny Mac wrote:
> I am trying to make a form that when a user enters data, there will always
> be one extra line in case the user wants to enter more. Any hints on how to
> create this?
>
> In addition to the tombstone data which should be entered only once, the
> user has two fields to fill in per line. Once the user has filled in as
> many lines as necessary, the user sends the data via mailto().
>
> help...?
I did this with Javascript pretty easily. Basically I keep an empty
"template" row hidden, then when the user clicks the "Add Row" button,
a function clones the template row, modifies the element names (ie:
"txtName10", "txtName11", etc), then appends the row at the bottom of
the table.
Navigation:
[Reply to this message]
|