Issue using 1.10 table rows()
Issue using 1.10 table rows()
jlag833
Posts: 2Questions: 0Answers: 0
I've encountered an issue when attempting to follow the example for multi-row selections:
https://next.datatables.net/examples/api/select_row.html
The issue is, when I try to recreate the example and click the button nothing happens. The console shows the following error:
[code]Uncaught TypeError: Object [object Object] has no method 'rows'[/code]
I've checked and made sure I'm not loading multiple instances of jQuery or datatables JS files. See the jsfiddle at:
http://jsfiddle.net/8HPh4/14/
Is this possibly a bug, or have I botched something here? I've tried using jQuery 1.10.2, 1.11.0, but encountered the same issue.
https://next.datatables.net/examples/api/select_row.html
The issue is, when I try to recreate the example and click the button nothing happens. The console shows the following error:
[code]Uncaught TypeError: Object [object Object] has no method 'rows'[/code]
I've checked and made sure I'm not loading multiple instances of jQuery or datatables JS files. See the jsfiddle at:
http://jsfiddle.net/8HPh4/14/
Is this possibly a bug, or have I botched something here? I've tried using jQuery 1.10.2, 1.11.0, but encountered the same issue.
This discussion has been closed.
Replies
> var table = $('#cardlist').dataTable( {
You want:
[code]
var table = $('#cardlist').DataTable( {
[/code]
See: http://next.datatables.net/manual/api#Accessing-the-API
Allan
Thanks Allan, that was exactly it.