Let's JAM!

How to solve DataTables giving a 'Cannot read className of undefined' error

Datatables is an awesome library for making tables useful in HTML.


The table I was using did work, and then stopped working. :-(


I took a look at the headers and the data. Turns out my headers and my data had some mismatches. I had more column headres than I did columns in my data. This was giving me this error. I fixed the problems with the table colmun headers and all was well!