The following error is being thrown in Google Chrome\'s developers tools:
Uncaught TypeError: Cannot read property \'className\' of undefined
In my specific case, I had the aTargets properties set with array indices outside the bounds for my elements.
$('.datatable').dataTable({
aoColumnDefs: [
{
bSortable: false,
aTargets: [0, 6]
}
],
aaSorting: []
});
This set that there were 7 td columns, but there were only 6. Changing it to the following corrected it:
$('.datatable').dataTable({
aoColumnDefs: [
{
bSortable: false,
aTargets: [0, 5]
}
],
aaSorting: []
});