I am using jQuery ajax call to return data as html to an empty tag `<table id=table01></table>` using 

```
$('table #table01').html(data);

```

Table is rendered and filled with data properly, but when I want to sort columns using column header, I get an error message ***No data available in table***

Am I doing something wrong, or DataTables plugin for jQuery does not work with injected html.

Thanks