Uncaught TypeError: Cannot read property 'Code' of undefined
Uncaught TypeError: Cannot read property 'Code' of undefined
Hi, I have two datatables. When I click the first datatables, it will update the second datatables. On the second datatables, I implemented child rows. My problem is when I select a row on the first datatables the first time, it will refresh the second datatables and I can click the + sign and it will show also the child rows. But when I select again another row on the first datatable, it will refresh again the second datatables but the + sign will have an error already of "Uncaught TypeError: Cannot read property 'Code' of undefined" . The 'Code' is part of the child row. It seems that it has an error on the second load of the second datatables. Any ideas what is wrong? Thanks
Answers
hi, i managed to fix this by putting .off('click'..... on datatable tbody. Thanks anyway