How to remove and recover rows and re-pagination?

How to remove and recover rows and re-pagination?

jchen2001jchen2001 Posts: 1Questions: 1Answers: 0
edited May 2015 in Free community support

Here is in my table:

<table id="example">
   <tr id="1">....</tr>
   <tr id="1">....</tr>
   <tr id="2">....</tr>
   <tr id="2">....</tr>
   <tr id="3">....</tr>
   <tr id="3">....</tr>
</table>

How can I get a table with rows that is <tr id="1">, <tr id="2"> or <tr id="3"> respectively?
To get table with <tr id="1">, I tried

    $('#example').DataTable().row('#2').remove().draw();
    $('#example').DataTable().row('#3').remove().draw(); 

and it works. But when I want a table with <tr id="2"> or <tr id="3">, how can I recover <tr id="2"> or <tr id="3"> that are removed by above codes?

This discussion has been closed.