views:

25

answers:

2

http://stackoverflow.com/questions/1564566/using-jquery-to-add-or-remove-form-elements/

when i click the add link the information in the existing input field disappears.

How do i tell it to retain this information.

A: 

Try changing

$('input', addRow).val('');

to

$('input', addRow).val($(this).val());
Tim
A: 

tried that Tim but what that does is move the info from the existing input and put it in the new row input instead.