Adding new input row to form on event click
Using JQuery to a开发者_如何学JAVAdd 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.
tried that Tim but what that does is move the info from the existing input and put it in the new row input instead.
Try changing
$('input', addRow).val('');
to
$('input', addRow).val($(this).val());
精彩评论