Issue using 1.10 table rows()
Issue using 1.10 table rows()
![jlag833](https://secure.gravatar.com/avatar/9ed1bc69ee3f43c5b3bb7add791bed30/?default=https%3A%2F%2Fvanillicon.com%2F9ed1bc69ee3f43c5b3bb7add791bed30_200.png&rating=g&size=120)
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.