SyntaxFix
Write A Post
Hire A Developer
Questions
You can use:
$('#table').dataTable().fnClearTable(); $('#table').dataTable().fnAddData(myData2);
Jsfiddle
Update. And yes current documentation is not so good but if you are okay using older versions you can refer legacy documentation.