asked on November 24, 2020
I have created a table and a button on Laserfiche forms, when you click on the button it clones the table however if I select a value from the drop down list it goes back to default value in the copied table.
$('.cls_SourceTable tbody tr').each(function(i,tr) { var rowFromSourceTable = $(this); Payment_Value = tr.cells[6].children[1].children[0].value; //Check if the amount value is greater that 0 before clonning if(Payment_Value > 0) { // .. Take a clone/copy of it .. var clonedRowFromSourceTable = rowFromSourceTable.clone(); total = parseFloat(Consumed) + parseFloat(Payment_Value); tr.cells[8].children[1].children[0].value =total; amount = tr.cells[4].children[1].children[0].value;
0
0