How to put an id in the row to add to fnAddData
How to put an id in the row to add to fnAddData
Hi,
First of all sorry for my English
I´m adding a row:
var a = oTable.fnAddData({ "add message" ,"","es","ALL","%",""]);
var oSettings = oTable.fnSettings();
var nTr = oSettings.aoData[a[0] ].nTr;
And then I add the attribute
jQuery("#gamesSuccesfultable > tbody > tr").eq(0).attr("id",filasNuevas++);
Everything works fine until I register a new row and then lost the id of the previous rows discharged
Please could you help me?
Thank u!!
First of all sorry for my English
I´m adding a row:
var a = oTable.fnAddData({ "add message" ,"","es","ALL","%",""]);
var oSettings = oTable.fnSettings();
var nTr = oSettings.aoData[a[0] ].nTr;
And then I add the attribute
jQuery("#gamesSuccesfultable > tbody > tr").eq(0).attr("id",filasNuevas++);
Everything works fine until I register a new row and then lost the id of the previous rows discharged
Please could you help me?
Thank u!!
This discussion has been closed.
Replies
[code]
var nTr = oSettings.aoData[a[0] ].nTr;
nTr.id = "whatever_the_id_is";
[/code]?
Allan