📅  最后修改于: 2022-03-11 14:53:25.475000             🧑  作者: Mango
function add() {
var new_chq_no = parseInt($('#total_chq').val()) + 1;
var new_input = "";
$('#new_chq').append(new_input);
}
function remove() {
var last_chq_no = $('#total_chq').val();
if (last_chq_no > 1) {
$('#new_' + last_chq_no).append('');
$('#total_chq').val(last_chq_no - 1);
}
}