Hey.
There is a form 1:
<form id="form-1"> <input type="text" class="name" name="name" /> <input type="text" class="surname" name="surname" /> <input class="feedback" name="send" type="button" value="Отправить"> </form> And the second form that opens in a pop-up by clicking on the button:
<button class="btn" type="button">Оформить подписку</button> <form id="form-2"> <input type="text" class="name" name="name" /> <input type="text" class="surname" name="surname" /> <input type="text" class="e-mail" name="e-mail" /> <input class="feedback" name="send" type="button" value="Отправить"> </form> How on js (or jquery) to transfer the entered data of the fields "name" and "last name" from the form one to the same (similar) fields "name" and "last name" in the second form, by clicking on the button?
$('.btn').click(function(){ });