Copy the selected row and append to table by using fnAddTr plug-in

Copy the selected row and append to table by using fnAddTr plug-in

zeroxiongzeroxiong Posts: 1Questions: 0Answers: 0
edited January 2012 in DataTables 1.8
I receive the error: nTr.getElementsByTagName is not a function

code as blow:

[code]
var nTr = oTable.fnGetNodes(0);
oTable.fnAddTr(nTr);
[/code]

I also tried:

[code]
var nTr = oTable.fnGetNodes(0);
oTable.fnAddTr($(nTr));
[/code]

andalso:

[code]
var nTr = oTable.fnGetNodes(0);
oTable.fnAddTr($(nTr)[0]);
[/code]

all will receive the error message. please kindly help.

Replies

  • allanallan Posts: 61,869Questions: 1Answers: 10,137 Site admin
    Can you link to a demo page showing the problem please?

    Allan
This discussion has been closed.