I have got the solution to apply the below code to append rows in DataTable using jQuery. Apply this code
<script> var table = $('#tableData').DataTable(); for(i=0; i<res.data.length; i++){ table.row.add([res.data[i]['column1'],res.data[i]['column12'],res.data[i]['column13']]); } table.draw(); </script>
Hope It will be helpful for you.
Question and answer is powered by AnsPress.io