이것은 쉽지만 쉬워야합니다.jQuery를 사용하여 데이터베이스 레코드의 양식 복제
나는 다음과 같은 형식이 있습니다
<div id="rsvp">
<form class="form-inline">
<fieldset>
<label class="control-label" for="input01" id="rsvp_label">John Smith</label>
<label class="control-label">Attending?:</label>
<label class="radio"><input type="radio" name="optionsRadios" id="optionsRadios1" value="option1" checked>Yes</label>
<label class="radio"><input type="radio" name="optionsRadios" id="optionsRadios2" value="option2">No</label>
<label class="control-label small" for="select01" id="meal"> Meal Selection:</label>
<select id="selectMeal" class="input-small">
<option>Chicken</option>
<option>Beef</option>
</select>
<button type="submit" class="btn btn-primary" id="btnrsvp">Save/Confirm Changes</button>
</fieldset>
</form>
</div>
내가 성공적으로 내 쿼리와 일치하는 데이터베이스 레코드를 철수하고, 그리고 나는 1가 -> n 개의 기록을. 이 기록을 각 기록마다 복제하고 싶습니다. 따라서 레코드를 반복 할 수는 있지만 실제로 필드 세트를 복제 한 다음 ID를 증가시켜 각 필드에 양식 작업을 첨부 할 수있는 방법을 알아내는 데 문제가 있습니다. 아니면 이것을 할 수있는 더 좋은 방법이 있을까요?