Hey Everyone,
Having an interesting issue. I have a form where a second table is being populated by a previous table (it's an education reimbursement form and shows what classes were previously approved vs. what they are currently asking reimbursement for). Anyways, on the second table, if the user wanted to drop class A and only request reimbursement for Class B and C, class C is being deleted even though I am clicking to delete class A.
This table is being populated by a table used previously in the form and that is being accomplished with the following JavaScript
$(document).ready(function(){ var r1 = $('.originalTable .propCount').val(); while($('.duplicateTable .propCount').val() < r1){ $('.duplicateTable .cf-table-add-row').click(); }; });
How do I get it so only the row I am wanting to delete is removed and not the last row in the table?