Files

15 lines
935 B
HTML
Raw Permalink Normal View History

2025-04-11 14:18:51 +07:00
<script>
var current_index = '2';
function addRow() {
var index = 1 + parseInt(current_index);
var tpl = '<tr><td>' + index + '</td> ' +
'<td>' +
'<input type="text" name="cod[order_value][]" class="input input-bordered iput-sm h-[35px] rounded-[4px]" size="30" value="" onkeyup="this.value = writeStringToPrice(this.value)" placeholder="Nhập giá trị đơn hàng"></td> ' +
'<td><input type="text" name="cod[fee][]" class="input input-bordered iput-sm h-[35px] rounded-[4px]" size="20" value="" placeholder="Nhập phí" onkeyup="this.value = writeStringToPrice(this.value)"></td>' +
'<td><a href="/admin/tag/delete/1" class="block w-[30px] h-[30px] leading-[30px] p-[5px] border-[1px] rounded-[4px]" > <i class="icons icon-remove"></i></a ></td>' +
'</tr>';
$("#tb_province").append(tpl);
current_index = index;
}
</script>