LyargoOS
User Center
 

Date
Sep. 13rd, 2026
 
2026年九月三十

Post: Data table Cheatsheet

Data table Cheatsheet

Table of Content

Data Table

While working with data tables if you want to populate the table from an ajax call, you have to first destroy and then re-draw the table:

$('#table1').DataTable().destroy();
$('#table1').find('tbody').append("<tr><td><value1></td><td><value1></td></tr>");
$('#table1').DataTable().draw();
Pinned Message
HOTODOGO
The Founder and CEO of Infeca Technology.
Developer, Designer, Blogger.
Big fan of Apple, Love of colour.
Feel free to contact me.
反曲点科技创始人和首席执行官。
开发、设计与写作皆为所长。
热爱苹果、钟情色彩。
随时恭候 垂询