title: How to re-create jQuery data-table on ajax response?
body: <p>I am creating a jQuery data-table based on some search criteria using ajax call &amp; response. 
  I am able to create the table. But when I try to search again, I am getting the below error.</p>
  
  <blockquote>
    <p>DataTables warning: table id=sendBulkEmailTable - Cannot reinitialise DataTable. For more information about this error, please see <a href="http://datatables.net/tn/3" rel="nofollow">http://datatables.net/tn/3</a></p>
  </blockquote>
  
  <p>I guess I cannot re-create the data table again. Can somebody provide a solution to my problem, how can I refresh the data of my table on next search.</p>
  
  <p>jQuery ajax call I wrote is: </p>
  
  <pre><code>     $("#tableId").dataTable({
          "data": res.ajaxResult.data,
          "columns": [
                      { "data": "data1" },
                      { "data": "data2" },
                      { "data": "data3" },
                      { "data": "data4" },
                      { "data": "data5" }
                   ]
        });
  </code></pre>