How do I pull one element from the data array?
How do I pull one element from the data array?
DataTablesUser
Posts: 19Questions: 0Answers: 0
I need one element from the data array...I don't know how to retrieve it...I tried this:
[code]
var aData2 = oTable.fnGetData();
alert(aData2[3]);
[/code]
It returns "undefined"...I need it to return the data from the table
Any ideas?
[code]
var aData2 = oTable.fnGetData();
alert(aData2[3]);
[/code]
It returns "undefined"...I need it to return the data from the table
Any ideas?
This discussion has been closed.
Replies
[code]
var aData2 = oTable.fnGetData();
console.dir(aData2);
[/code]
and look on the Javascript console at what is being returned from fnGetData. Given the error, I presume an array of < length 4.
Allan
[code]
{ "aaData": [["data1","data2","data3","data4","data5","data6","data7"]] }
[/code]
but i just wanna pull data4 out of there...but its returning that entire row instead