Can’t get it to work
-
I have installed your plugin, created a new WP page, and copied the following code into it from another support thread. The page still doesn’t display the datatable correctly with the formatting, pagination, sorting etc. What am I doing wrong? I have successfully used datatables before but not within WP. Is this console error relevant
Uncaught TypeError: Cannot read property ‘options’ of undefined
at HTMLDocument.<anonymous> ((index):142)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Function.ready (jquery.js?ver=1.12.4:2)
at HTMLDocument.K (jquery.js?ver=1.12.4:2)Thanks
[wp_jdt id=”demo”]
<table id=’demo’ width=’100%’>
<thead>
<tr>
<th>Name</th>
<th>Position</th> <th>Office</th>
<th>Age</th> <th>Start date</th>
<th>Salary</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</tfoot>
<tbody>
<tr>
<td>Tiger Nixon</td>
<td>System Architect</td>
<td>Edinburgh</td>
<td>61</td
<td>2011/04/25</td>
<td>$320,800</td>
</tr>
</tbody>
</table>
- The topic ‘Can’t get it to work’ is closed to new replies.