New row id and classes
New row id and classes
deb
Posts: 3Questions: 0Answers: 0
To insert a new row into a table I'm using:
fnAddData( ["str1","str2","str3", etc... ])
However, I would like to specify the id of the newly inserted TR, and also add some classes to it. Is that possible?
Thanks,
Deb
fnAddData( ["str1","str2","str3", etc... ])
However, I would like to specify the id of the newly inserted TR, and also add some classes to it. Is that possible?
Thanks,
Deb
This discussion has been closed.
Replies
[code]
fnAddData( {
"DT_RowId": "myId",
"0": "str1",
"1": "str2",
"2": "str3",
etc...
} );
[/code]
Allan
Once you have these indexes, you can get the actual TR-element using fnGetNodes.
Allan