- Forums
- General Errors
- [solved] Datatables: Uncaught Type Error: e Is Undefined
This pages shows the solution for solving an console error in datatables jquery library: Uncaught Type Error: e Is Undefined [5179], Last Updated: Mon Jun 24, 2024
datatables
Mon Aug 14, 2023
0 Comments
1107 Visits
Fix: Console Error: Uncaught Type Error: e Is Undefined
To solve this error, you will need to fix you table structure correctly. In my example below, I had a table with colspan and this simple does not work with datatables because each column is being iterated into an array with e as the index.
In the example below, remove the colspan="2" and add an additional <td></td>
<table>
<thead>
<th>
<td>1</td>
<td>2</td>
<tbody>
<tr>
<td colspan="2">2</td>
</tr>
</tbody>
</th>
</thead>
</table>
Hope that helps.