Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 124

$(table).DataTable().data() is an empty object

$
0
0

Hi all,
I have a table with 1 visible row, working well.

At some point I want to run some script to access the table's data, so I call:
var rows = $(table).DataTable().data()
console.log(rows)

this outputs:
Object {}

Here is how the table is initialized:

$(table).dataTable( {
"sDom": "Tfrtip",
"aaData": [
{
"name": "xxx",
"link": "yyyy"
}
],
});

any idea why data() is empty? According to the example, it should contain 1 row in my case.
tnx


Viewing all articles
Browse latest Browse all 124

Trending Articles