hello dear, i want ask simple question, how can i call one field came
from database, I'm new in Jquery, btw i use codeignter how can i do
that, i have already searching but still dont get it and dont know how
to strat, Will big thanks if any respon,
Freddy Sidauruk
- //var
kode is came from table, and i need to put this field in input
type id_pembelian, please see bellow
- var kode=
-
- var
i=$('table tr').length;
- $(".addmore").on('click',function(){
-
html = '<tr>';
-
html += '<td><input class="case"
type="checkbox"/><input type
name="id_pembelian" type="hidden" value="kode">
-
</td>';
-
html += '<td><input type="text"
data-type="id_barang" name="itemNo[]"
id="itemNo_'+i+'" class="form-control
autocomplete_txt" autocomplete="off"></td>';
-
html += '<td><input type="text"
data-type="nama_barang" name="itemName[]"
id="itemName_'+i+'" class="form-control
autocomplete_txt" autocomplete="off" readonly></td>';
-
html += '<td><input type="text"
name="StockName[]"
id="StockName_'+i+'" class="form-control
autocomplete_txt" autocomplete="off" readonly></td>';
-
html += '<td><input type="text"
name="price[]" id="price_'+i+'"
class="form-control changesNo"
autocomplete="off" onkeypress="return
IsNumeric(event);" ondrop="return false;"
onpaste="return false;"></td>';
-
html += '<td><input type="text"
name="quantity[]"
id="quantity_'+i+'" class="form-control
changesNo" autocomplete="off"
onkeypress="return IsNumeric(event);"
ondrop="return false;" onpaste="return false;"></td>';
-
html += '<td><input type="text"
name="total[]" id="total_'+i+'"
class="form-control totalLinePrice"
autocomplete="off" onkeypress="return
IsNumeric(event);" ondrop="return false;"
onpaste="return false;" readonly></td>';
-
html += '</tr>';
-
$('table').append(html);
-
i++;
- });