function fncAdd() {
var tb = document.getElementById('tbl');
var tbody = document.createElement('tbody'); // fixed IE :>
tb.insertBefore(tbody, null);
var clone=document.getElementById('cln').cloneNode(true);
tbody.insertBefore(clone,null);
}
//clone function for increase table
function fncDelete() {
var tb =document.getElementById('tbl');
var del = tb.rows.length;
if (del>1) {
tb.deleteRow(del-1);
}
}
//function for remove row when user click (-)
此表有2个下拉列表(按ajax),3个文本框和1个复选框 如果要克隆功能增加表但不从旧行获取旧值,该如何创建