title: "No data available in table" is displayed though we have data in the html table
body: <p>In my code I am creating two tables in same page and I am using dataTables.min.js and jquery-1.10.2.js scripts; </p>
  
  <p>Unfortunately I am getting an error "No data available in table" and then its shows the actual data.</p>
  
  <p><a href="https://i.stack.imgur.com/nIamx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nIamx.png" alt="enter image description here"></a> </p>
  
  <p>How to remove this? and If I click on "sort" in the table header I don't see any data in the table. As I understand no data was binded to Id "datatable-buttons"</p>
  
  <pre><code>    &lt;script src="{{ url_for('static', filename='vendors/datatables.net/js/jquery.dataTables.min.js') }}"&gt;&lt;/script&gt;
  
      &lt;div class="x_content"&gt;
            &lt;table id="datatable-buttons"   .....
  
      &lt;script src="https://code.jquery.com/jquery-1.10.2.js"&gt;&lt;/script&gt;
      &lt;script&gt;
      $( document ).ready(function() {
          $.getJSON("http://localhost:5000/api/v1/category", function (data) {
             $.each(data, function(i, item) {
                var tr = $('&lt;tr&gt;');
                $(tr).append("&lt;td&gt;" + item.code + "&lt;/td&gt;");
                $(tr).append("&lt;td&gt;" + item.name + "&lt;/td&gt;");
                $(tr).append("&lt;td&gt;" + item.description + "&lt;/td&gt;");
                $(tr).append('&lt;/tr');
                $('#datatable-buttons').append(tr)
            });
          });
        });
       &lt;/script&gt;
  </code></pre>