Kaskus

Tech

miyavizmAvatar border
TS
miyavizm
[PHP] All About PHP (3) - Part 1
Quote:


Silakan sob emoticon-Smilie
Di sini cm ajang share pengalaman coding di PHP aja kok, jadi bisa saling nambah pengetahuan emoticon-Big Grin
nona212
666fapfap
FansHolmesMello
FansHolmesMello dan 6 lainnya memberi reputasi
5
476.9K
9.2K
GuestAvatar border
Komentar yang asik ya
Mari bergabung, dapatkan informasi dan teman baru!
Programmer Forum
Programmer Forum
KASKUS Official
20.2KThread4.7KAnggota
Tampilkan semua post
Jas.MerahAvatar border
Jas.Merah
#9046
malam gan , mau nanya, cara insert data dari table dinamic html gimana yah ?

function addRow(tgl_temp, no_temp, po_trans, faktur_temp, operator_temp, supp1, supp2, brg1, brg2, quantity,
price) {
// Create a new row element
var idNum = ($tableBody.find('tr').length + 1);
var rowId = 'row-' + idNum;
var $row = $('<tr id="' + rowId + '"></tr>');



// Add the table cells
$row.append('<td id="idNum" name="idNum[]" class="idCell">' + idNum + '</td>');
$row.append('<td id="tgl_temp" name="tgl_temp[]" class="codeCell" hidden>' + tgl_temp + '</td>');
$row.append('<td id="no_temp" name="no_temp[]" class="clientCell" hidden>' + no_temp + '</td>');
$row.append('<td id="po_trans" name="po_trans[]" class="chargeTypeCell" hidden>' + po_trans + '</td>');
$row.append('<td id="faktur_temp" name="faktur_temp[]" class="chargeTypeCell1" hidden>' + faktur_temp + '</td>');
$row.append('<td id="operator_temp" name="operator_temp[]" class="chargeTypeCell2" hidden>' + operator_temp + '</td>');
$row.append('<td id="supp1" name="supp1[]" class="chargeTypeCell3" hidden>' + supp1 + '</td>');
$row.append('<td id="supp2" name="supp2[]" class="chargeTypeCell4" hidden>' + supp2 + '</td>');
$row.append('<td id="brg1" name="brg1[]" class="chargeTypeCell5" >' + brg1 + '</td>');
$row.append('<td id="brg2" name="brg2[]" class="chargeTypeCell6" hidden>' + brg2 + '</td>');
$row.append('<td id="quantity" name="quantity[]" class="quantityCell">' + quantity + '</td>');
$row.append('<td id="price" name="price[]" class="priceCell">' + price + '</td>');
$row.append('<td id="subbtotal" name="subbtotal[]" class="orderTotalCell">' + getSubtotal(quantity, price) + '</td>');
$row.append(
'<td><Button type="button" value="" class="deleteRowButton btn btn-danger fa fa-trash" data-row="#' +
rowId +
'" /></button></td>');


setiap nyoba yang kebaca text box yang utamanya, Makasih sebelumnya. oh iya yang diatas kodingan dijavascript buat namabin rownya..
Diubah oleh Jas.Merah 02-10-2020 14:23
0
Tutup
Ikuti KASKUS di
© 2024 KASKUS, PT Darta Media Indonesia. All rights reserved.