update
This commit is contained in:
15
old/template/javascript/shipping2.html
Normal file
15
old/template/javascript/shipping2.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user