Aşağıdaki gibi 5 alanlı bir kayıt alanı var. Buraya .append ile birden fazla satır ekliyorum.
bunların insert işlemini nasıl yapabiliriz?
<table class="table" id="customFields">
<thead>
<tr>
<th>Ad Soyad</th>
<th>Görevi</th>
<th>Telefon</th>
<th>Dahili</th>
<th>E-posta</th>
<th>#</th>
</tr>
</thead>
<tbody>
<tr>
<td><input type="text" name="adsoyad[]" style="width:130px"/></td>
<td><input type="text" name="gorevi[]" style="width:130px"/></td>
<td><input type="text" class="phone" name="telefon[]" style="width:130px"/></td>
<td><input type="text" name="dahili[]" style="width:70px"/></td>
<td><input type="email" name="eposta[]" style="width:190px"/></td>
<td><a href="javascript:void(0);" class="addCF">Add</a></td>
</tr>
</tbody>
</table>
<script>
$(document).ready(function(){
var cnt = 2;
$(".addCF").on("click",function(){
$("#customFields").append('<tr><td><input type="text" name="adsoyad[]" style="width:130px"/></td><td><input type="text" name="gorevi[]" style="width:130px"/></td><td><input type="text" class="phone" name="telefon[]" style="width:130px"/></td><td><input type="text" name="dahili[]" style="width:70px"/></td> <td><input type="email" name="eposta[]" style="width:190px"/></td><td><a href="javascript:void(0);" class="remCF"><span class="btn">-</span></a></td></tr>');
$(".phone").mask("(999) 999-9999");
cnt++;
});
$("#customFields").on('click','.remCF',function(){
if (confirm("Silmek istediğinizden emin misiniz?"))
{
$(this).parent().parent().remove();
}
});
});
jQuery(function($){
$(".phone").mask("(999) 999-9999");
});
</script>