Uncaught TypeError: Cannot read property 'asSorting' of undefined (anonymous function)/js/jquery.dataTables-1.7.3.min.js:139
<table>
<thead>
<tr>
<th>Column 1</th>
<th>Column 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1</td>
<td>Row 1</td>
</tr>
</tbody>
</table>
"aaSorting": [0, 'asc']instead of:
"aaSorting": [[0, 'asc']]
if ( $('thead', table).length === 0 ) { throw 'No thead!'; } - what I'm suggesting is that it isn't practical since DataTables can, under certain conditions, inject and build a thead element, with columns for you - so simply not having a thead is not a valid test (in this specific case).It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.