Question: typeerror i is undefined datatables?
Answer: The main reason for the error is due to using the colspan & rowspan. Because the jQuery DataTables plug-in does not support them and hence causing the error. I think by following the above suggestion will help you sure. And then the id of the table should not overlap with id of any thing else on the same page.