Uncaught TypeError: Cannot read property 'mData' of undefined
Uncaught TypeError: Cannot read property 'mData' of undefined
collinrlz
Posts: 4Questions: 1Answers: 0
http://live.datatables.net/ziqaginu/4/edit?html,css,js,console,output
Have been trying to fix this issue. Could not solve it.
Would be very appreciated if anyone can help me fix this problem.
This discussion has been closed.
Answers
Your HTML has no reference to jQuery.
Done adding jQuery. Still the same issue.
http://live.datatables.net/ziqaginu/7/edit?html,css,js,console,output
Just added the header. Still the same 'mData - undefined' issue.
http://live.datatables.net/ziqaginu/8/edit?html,css,js,console,output
Found the problem... DataTables is very picky on the header with colspans. The number of header columns has to match with the number of tbody columns.
http://live.datatables.net/ziqaginu/11/edit?html,js,output